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
This might help:
def in_prime(n): p=True i=2 if i**2<=n: if n%i==0: p=False break if (p): return n