Skip to content

Commit

Permalink
euler047 solution
Browse files Browse the repository at this point in the history
  • Loading branch information
kailanefelix committed Oct 13, 2021
1 parent 87bc4e5 commit dec594a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions euler0XX/euler047.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
factors = [0] * 1000000

for i in range(2, len(factors)):
if factors[i] == 0:
for j in range(i + i, len(factors), i):
factors[j] = factors[j] + 1

if factors[i:i + 4] == [4, 4, 4, 4]:
print(i)
break

0 comments on commit dec594a

Please sign in to comment.