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 07:27M-RochatM-RochatScore: 135,777Success
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 07:31135,347129,656,691118,095,0001,011,0002,113,536
2May 16, 2026 07:31135,377129,675,583118,115,0001,017,0002,113,536
3May 16, 2026 07:31135,417127,723,056118,024,0001,143,0002,113,536
4May 16, 2026 07:31135,712127,981,138118,416,0001,011,0002,113,536
5May 16, 2026 07:31135,777128,026,770118,474,0001,010,0002,113,536
6May 16, 2026 07:31135,794127,916,945118,387,0001,112,0002,113,536
7May 16, 2026 07:31135,795128,122,088118,366,0001,134,0002,113,536
8May 16, 2026 07:31135,951129,884,897118,499,0001,138,0002,113,536
9May 16, 2026 07:31136,188128,452,230118,716,0001,130,0002,113,536