Prime number check in python how to check prime number in python#shorts #python #coding #primenumber

preview_player
Показать описание
#shortsvideoviral #python #coding #hi_coders #primenumber
prime number program in python
prime number in python
python program for prime number
python program to check prime number
python prime number program
prime numbers in python
prime or not in python
how to print prime numbers in python
write a program to check whether a number is prime or not in python
write a python program to check whether a number is prime or not
prime number program in python tamil
prime number python
write a program to check whether a number is prime or not
wap to check whether the number is prime or not
prime number program
how to check prime number
how to find prime numbers
python program to print all prime numbers in an interval
sum of prime numbers in the input in python
prime no program in python
prime number program logic in python
prime numbers
how to find prime numbers in python
prime number program logic
prime numbers in tamil
python
algorithm to find prime numbers
how to check whether a number is prime or not
number series in python
prime number logic in python
prime numbers python
print prime numbers from 1 to 100 in python
program to check prime number in python
python program to check whether a number is prime or not
strong number in python
user defined function in python
write an algorithm to check whether a number is prime or not
algorithm for prime number or not
program to check whether a number is prime or not
composite numbers in range in python
find prime number in python
check prime number in python
how to check prime number in python
How do you check if a number is prime in Python?
What is prime number in Python?
How do you test if a number is prime?
How do you check whether a number is prime or not in Python using while loop?
How do you find the prime number in a range?
How do you find the first 100 prime numbers in Python?
How do i find the first prime number in Python
How do you input prime numbers in Python?
How do you check if an input is a prime number Python?
Is there a prime function in Python
What is prime number in Python?
How do you write prime numbers in Python?
Is there a prime function in Python
What are the 3 types of numbers in Python?
What is NUM () in Python?
How do you display numbers in Python?
Is 3.14 an integer in Python
What is the prime number in Python?
How do you write prime numbers in Python?
Is prime function in Python?
How do you check if a number is prime in Python
check prime number in python
how to check prime number in python
How do you check if a number is prime in Python?
What is prime number in Python?
How do you test if a number is prime?
How do you check whether a number is prime or not in Python using while loop?
How do you find the prime number in a range?
How do you find the first 100 prime numbers in Python?
How do i find the first prime number in Python
How do you input prime numbers in Python?
How do you check if an input is a prime number Python?
Is there a prime function in Python
What is prime number in Python?
How do you write prime numbers in Python?
Is there a prime function in Python
What are the 3 types of numbers in Python?
What is NUM () in Python?
How do you display numbers in Python?
Is 3.14 an integer in Python
What is the prime number in Python?
How do you write prime numbers in Python?
Is prime function in Python?
How do you check if a number is prime in Python
check prime number in python
how to check prime number in python
How do you check if a number is prime in Python?
What is prime number in Python?
How do you test if a number is prime?
How do you check whether a number is prime or not in Python using while loop?
How do you find the prime number in a range?
How do you find the first 100 prime numbers in Python?
How do i find the first prime number in Python
How do you input prime numbers in Python?
How do you check if an input is a prime number Python?
Is there a prime function in Python
What is prime number in Python?
How do you write prime numbers in Python?
Is there a prime function in Python
What are the 3 types of numbers in Python?
What is NUM () in Python?
How do you display numbers in Python?
Is 3.14 an integer in Python
What is the prime number in Python?
How do you write prime numbers in Python?
Is prime function in Python?
How do you check if a number is prime in Python
check prime number in python
how to check prime number in python
How do you check if a number is prime in Python?
What is prime number in Python?
How do you test if a number is prime?
How do you check whether a number is prime or not in Python using while loop?
How do you find the prime number in a range?
How do you find the first 100 prime numbers in Python?
How do i find the first prime number in Python
How do you input prime numbers in Python?
How do you check if an input is a prime number Python?
Is there a prime function in Python
What is prime number in Python?
How do you write prime numbers in Python?
Is there a prime function in Python
What are t
Рекомендации по теме
Комментарии
Автор

Nowadays anyone is just posting codes even if they don't know 😂

rravi
Автор

Your code is only checking even numbers but what about odd numbers.

ippilitriveni
Автор

Hey @Hi_coders, thanks for your solution. Please can I ask if you can do a short video to calculate pi = 3.2 next? :)

killorfill
Автор

if input is 2
2%2 is zero ==0
its will print not prime number

abishekgupta
Автор

the video's code of line number 7
the statement must be
if num%n==0:

fatimakhan
Автор

Your code doesn't check for prime only for odd and even. 15, 25, etc will be classified as prime. To avoid this, you can use if num % n == 0

imfrommars
Автор

39 is a composite number divide it by 2 then the output is that 39 is a prime no. but actually it is odd composite no. your program is only for odd and even :-]

rudra
Автор

Bhai odd even ka code h ye na ki prime non prime ka

vishnusolanki
Автор

prime no. pta hai kisko bolte hai pehle woh pd kr

krishnarawat
Автор

def prime_number(n):
if n==1:
b=print(n, "is a non prime number")
return b
elif n==0:
d=print(n, "is a non prime number")
return d
elif n>1:
for i in range(2, n):
if n%i==0:
c=print(n, "is a non prime number")
return c
break
else:
print(n, "is a prime number")
num=int(input("Enter a Number:"))
print(prime_number(num), "is a prime number")
prime_number(num)

Harbingersknight
Автор

you are wrong, the correct code is like this my friend:
x=int(input("entre a number: "))
if x==1:
print(x, "is not primary")
if x>1:
for n in range(2, x-1):
if x%n==0:
print(x, "is not primary")
break
else:
print(x, "is primary")
break

saberbenbouzid
Автор

kya code ee paagal
9 is prime number aa then

abhishek.m.
Автор

2 is a prime number but enter the program is not prime number

yrpyoru
Автор

x =int(input("Enter Your Number Please: "))
if x == 2:
    print("A Prime Number.")
else:
    for i in range(2, x):
        if x % i == 0:
            print("Not a Prime Number.")
            break
    else:
        print("A Prime Number.")

Aditya_Deshmukh
Автор

z= int(input ("give the value: "))
if z%2==0:
print (z, "=it is not a prime number")
else:
print (z, "=it is prime number ")

E method correct ahh..

mklmuxj
Автор

Range me jo appne (2, num )diya hai
Waha pr (2, num+1)
Hoga
?

riteshtiwari