FrankKair / polyglot-euler

📜 Project Euler solutions in various programming languages
MIT License
73 stars 14 forks source link

Update p001.cpp #127

Open tigertv opened 4 years ago

tigertv commented 4 years ago

Hi!

Make it faster.

How the solution works

No loops. It uses sum of arithmetic progression.

Performance

https://tio.run/ gives that

Real time: 0.340 s
User time: 0.271 s
Sys. time: 0.061 s
CPU share: 97.96 %
Exit code: 0