'''
Find & PRINT N No of PRIME Nos.
'''
N = eval(input("How Many Prime Nos You Want to Print :"))
n = 2
while N > 0:
i = 2
while i < n:
if( n % i == 0):
break
i += 1
if(i == ):
print(n," ")
N = N - 1
n = n + 1
Find & PRINT N No of PRIME Nos.
'''
N = eval(input("How Many Prime Nos You Want to Print :"))
n = 2
while N > 0:
i = 2
while i < n:
if( n % i == 0):
break
i += 1
if(i == ):
print(n," ")
N = N - 1
n = n + 1
Comments
Post a Comment