mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-02-06 04:37:47 +08:00
11 lines
185 B
Python
11 lines
185 B
Python
from time import process_time as clock
|
|
|
|
start = clock()
|
|
|
|
N = 50000000; factors = []
|
|
for i in range(1, N+1):
|
|
if N % i == 0:
|
|
factors.append(i)
|
|
|
|
print("elapsed:", clock() - start, 's')
|