Skip to main content

Timeline for Solve Project Euler #4 in PHP

Current License: CC BY-SA 4.0

3 events
when toggle format what by license comment
Oct 5, 2018 at 8:40 comment added David Lemon It's a programmers choice, I prefer to keep the code simple and readable rather than gaining a 2% in time. In my (quick and dirty) benchmarks it doesn't even shows this 2% gain...
Oct 4, 2018 at 21:03 comment added AJNeufeld With && $i*$i > $found in your outer loop test, you add 80-odd comparisons to the outer loop, but save 800-odd iterations of the outer loop, and 800-odd false starts of the inner loop. Perhaps it is only savings of a millisecond or two, but I'd claim it is still the right thing to do.
Oct 4, 2018 at 15:32 history answered David Lemon CC BY-SA 4.0