2883 days ago
Unfiled.
Edited by
百千.IO
2883 days ago
- MAX=1000000 # MAX=400000可以0.2秒AC,但那只是因為測資,大於400000的都不是質數
- is_prime=[False,False]+[True]*(MAX-1)
- for i in range(now*2,MAX+1,now):
2885 days ago
Unfiled.
Edited by
百千.IO
2885 days ago
- MAX=int(2147483647**0.5)+1
- is_prime=[False,False]+[True]*(MAX-1)
- for i in range(now*2,MAX+1,now):
2886 days ago
Unfiled.
Edited by
百千.IO
2886 days ago
- from time import time # from time module import time function
- is_prime=[False,False]+[True]*(MAX-1)
- for i in range(now*2,MAX+1,now):
2887 days ago
Unfiled.
Edited by
百千.IO
2887 days ago
- is_prime=[False,False]+[True]*(MAX-1)
- for i in range(now*2,MAX+1,now):
Stop sharing the collection with ?
This pad is open to "", so will still be able to access it.