Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
PRIMES russian DANILIN
import time; from random import randint # PRIMES russian DANILIN p = randint(1, 2**25); f=0; j=2; q=0; # p=2**31-1; while f < 2: # rextester.com/ if j >= int(p**0.5): # 2**31-1 = 2_147_483_647 f=2 # max 2_308_621_829 if p % j == 0: q=1 print (p,j,int(p/j)) j+=1 if q != 1: print(p," Prime", p/10**9, " BillionS") print(time.perf_counter(), " seconds")
run
|
edit
|
history
|
help
0
Emails_Python
perform_math.py
RemoveDuplication
Hh
prime_nonprime_count.py
miyabhai
we
Determine the weight of tiles at 10 grams each
hi
inerse_matrix_gauss_jordan