Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listApr 22, 2024 19:58Joad NacerJoad NacerScore: 81,854Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2024 20:0481,368134,933,31571,603,85802,260,992
2Apr 22, 2024 19:5881,729138,360,98071,921,36302,260,992
3Apr 22, 2024 20:0481,829124,484,85072,009,33902,252,800
4Apr 22, 2024 20:0481,854130,842,01872,031,25202,260,992
5Apr 22, 2024 19:5881,927144,019,58072,095,63402,260,992
6Apr 22, 2024 19:5881,991136,543,82172,152,22702,265,088