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 listMay 16, 2026 21:57M-RochatM-RochatScore: 28,345Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2026 22:0628,22635,717,76623,701,0001,138,0002,113,536
2May 16, 2026 22:0628,27633,547,79523,767,0001,116,0002,113,536
3May 16, 2026 22:0628,27935,162,56523,767,0001,119,0002,113,536
4May 16, 2026 22:0628,29633,585,69823,786,0001,115,0002,113,536
5May 16, 2026 22:0628,34533,690,81923,835,0001,109,0002,113,536
6May 16, 2026 22:0628,42036,269,95823,865,0001,145,0002,113,536
7May 16, 2026 22:0628,43034,441,52723,879,0001,140,0002,113,536
8May 16, 2026 22:0628,51734,197,60223,980,0001,115,0002,113,536
9May 16, 2026 22:0628,62047,883,38824,123,0001,063,0002,113,536