| |
 Super Member
 Group: Vice AdminPosts: 1467 Location: localhost Status:  | |
| CITAZIONE By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6^(th) prime is 13.
What is the 10001^(st) prime number? Questa è la mia soluzione in python. CODICE max=10002 conta=0 now=1 primo=True while conta!=max: for elemento in range(2,now): if now % elemento == 0: primo = False if primo==True: print conta,now conta+=1 now+=1 primo=True |
| | |