I am new to the programming world. I was just writing this code in python to generate N prime numbers. User should input the value for N which is the total number of prime n
n=1 c=0 while n>0: for i in range(2,n): if n%i == 0: break else: print(n,'is a prime') c=c+1 n=n+1 if c==1000: break