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 22, 2026 17:15M-RochatM-RochatScore: 23,888Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2026 17:1823,81331,598,19419,892,0001,064,0002,113,536
2May 22, 2026 17:1823,85132,226,71419,926,0001,063,0002,113,536
3May 22, 2026 17:1823,86530,290,47119,916,0001,086,0002,113,536
4May 22, 2026 17:1823,87230,936,10419,936,0001,072,0002,113,536
5May 22, 2026 17:1823,88831,180,80819,966,0001,056,0002,113,536
6May 22, 2026 17:1823,89531,446,68319,963,0001,065,0002,113,536
7May 22, 2026 17:1823,92531,890,80419,982,0001,072,0002,113,536
8May 22, 2026 17:1824,04031,072,73720,013,0001,143,0002,113,536
9May 22, 2026 17:1824,05331,718,13620,115,0001,052,0002,113,536