Prime number detector using python || python practice programs || codeandman (source code)


hey guys how are you all today in this pos I am going to give you the source code of my video called prime number detector using python so let's begin:

here's the source code:

num = int(input("Enter the number you want to check:"))

for i in range(2,num):
    if num % i == 0:
        print("The number given is not prime")
        break
else:
    print("The Number Given is Prime")

# ==================
'''
4
5*1 = 4
4<5
--------------------
7
7/2 =
7/3 =
7/4 =
7/5 =
7/6=


'''

I hope that you liked this post.
Like, Share and Subscribe the video and the channel.
Thank You.

Comments

Popular posts from this blog

The Professional HTML Cheatsheet For beginners in 2024 for free

Top 3 Websites to get copyright free images in 2024 for free

Top 10 cmd commands everyone should know