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=int(input("Enter the number:: ")) for i in range(2,n): p=i k=0 for j in range(2,p-1): if(p%j==0): k=k+1 if(k==0): print(p)