#Program 6-18
2 to 50 using nested for loops.
=
num 2
for i in range (2, 50):
j= 2
while ( j <= (i/2)) :
if (i % j == 0):
break
#factor found
#break out of while loop
j += 1
if ( j > i/j) :
#no factor found
print (i, "is a prime number")
print ("Bye Bye!!")
explain?
karanbiwal320:
good morning to all
Answers
Answered by
1
Answer:
please mark me Brainliest please ✨✨✨✨✨. I
Answered by
0
Answer:
this is a scratch program of a maths book animation where it is showing the prime numbers which range from 2 to 50 numbers and looks like a prime number. This doesn't show any prime number defination. If you want it then comment me down.
I hope it was helpful
Similar questions