polyglot-euler
polyglot-euler copied to clipboard
Python 104
How the solution works
This is a brute force solution with two optimizations:
- Getting first and last 9 digits without transforming it to string so we don't need to convert the entire number (it's big);
- Checking if the number is divisible by three, all 1-9 pandigital numbers are divisible by three.
Performance
Real time: 24.138 s
User time: 23.978 s
Sys. time: 0.015 s
CPU share: 99.40 %
Exit code: 0