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 listMar 14, 2026 15:36Dominique GarmierDominique GarmierScore: 59,869Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 14, 2026 15:4059,70577,224,16951,530,0001,010,0002,281,472
2Mar 14, 2026 17:0459,72275,405,46752,555,00002,387,968
3Mar 14, 2026 15:4059,72478,320,74451,547,0001,010,0002,392,064
4Mar 14, 2026 17:0459,82279,535,54751,631,0001,012,0002,281,472
5Mar 14, 2026 15:3659,86978,349,35551,672,0001,013,0002,281,472
6Mar 14, 2026 15:3659,88176,295,80351,682,0001,013,0002,502,656
7Mar 14, 2026 15:3659,96886,093,75052,772,00002,281,472
8Mar 14, 2026 15:4060,08678,633,14850,881,0001,995,0002,281,472
9Mar 14, 2026 17:0460,11079,405,86950,901,0001,996,0002,383,872