Published
- 1 min read
python program to find n prime numbers
The solution for this is noted below
python program to find n prime numbers
Solution
num = 10
for i in range(2,num+1):
for j in range(2,i):
if(i%j == 0):
break
else:
print(i)
Try other methods by searching on the site. That is if this doesn’t work