To find first N prime numbers in python

前端 未结 29 2330
醉梦人生
醉梦人生 2020-11-28 06:56

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

29条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-28 07:57

    Anwer here is simple i.e run the loop 'n' times.

    n=int(input())
    count=0
    i=2
    while count

提交回复
热议问题