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 listAug 29, 2026 14:04Victor MerckléVictor MerckléScore: 4,045Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 29, 2026 14:084,01313,144,4483,532,00002,117,632stderr
2Aug 29, 2026 14:084,02511,740,1763,542,00002,117,632stderr
3Aug 29, 2026 14:084,03111,724,6323,548,00002,117,632stderr
4Aug 29, 2026 14:084,03511,740,4173,551,00002,117,632stderr
5Aug 29, 2026 14:084,04511,752,9253,560,00002,117,632stderr
6Aug 29, 2026 14:084,13111,757,4323,636,00002,117,632stderr
7Aug 29, 2026 14:084,14011,794,8893,644,00002,117,632stderr
8Aug 29, 2026 14:084,15312,583,0933,655,00002,117,632stderr
9Aug 29, 2026 14:084,16012,389,9583,661,00002,117,632stderr