This commit is contained in:
t3xhno
2024-02-06 15:00:05 +01:00
parent f7973c0719
commit 4599d7be12
2 changed files with 36 additions and 5 deletions

14
src/problem3.py Normal file
View File

@@ -0,0 +1,14 @@
import math
import sys
sys.path.append("lib")
from num_fns import sieve, isDivBy
target = 600851475143
primes = sieve(math.floor(math.sqrt(target)))
primes.reverse()
for i in primes:
if isDivBy(target, i):
print(i)
break