nayuki / Project-Euler-solutions

Runnable code for solving Project Euler problems in Java, Python, Mathematica, Haskell.
https://www.nayuki.io/page/project-euler-solutions
1.89k stars 675 forks source link

Update p025.py #43

Closed brayo-pip closed 4 years ago

brayo-pip commented 4 years ago

Runs faster, always prefer faster code I guess

nayuki commented 4 years ago

Rejected for these reasons:

I strongly avoid any floating-point arithmetic at all, unless there is no other reasonable way (that I know of) to solve the problem

( https://www.nayuki.io/page/project-euler-solutions )