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 18, 2026 09:34limanjun99limanjun99Score: 71,089Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 18, 2026 09:3470,93187,896,75161,413,0001,006,0002,289,664
2Mar 18, 2026 09:3471,05283,691,62161,518,0001,008,0002,269,184
3Mar 18, 2026 09:3471,07484,366,99761,537,0001,008,0002,289,664
4Mar 18, 2026 09:3471,07786,930,55361,540,0001,008,0002,289,664
5Mar 18, 2026 09:3471,08990,032,17961,549,0001,009,0002,273,280
6Mar 18, 2026 09:3471,09885,754,15761,557,0001,009,0002,289,664
7Mar 18, 2026 09:3471,10188,414,99662,569,00002,281,472
8Mar 18, 2026 09:3471,10588,127,63161,563,0001,009,0002,289,664
9Mar 18, 2026 09:3471,17483,378,42761,623,0001,010,0002,281,472