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 listFeb 20, 2026 02:15zielajzielajScore: 3,311Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2026 02:153,15516,113,6602,776,00002,433,024
2Feb 20, 2026 02:143,16518,057,8732,785,00002,428,928
3Feb 20, 2026 02:143,16520,844,5172,785,00002,428,928
4Feb 20, 2026 02:143,17522,371,4652,794,00002,433,024
5Feb 20, 2026 02:153,18618,438,9012,804,00002,424,832
6Feb 20, 2026 02:153,30116,964,8861,937,000968,0002,420,736
7Feb 20, 2026 02:153,30918,393,8572,912,00002,420,736
8Feb 20, 2026 02:143,31123,617,0911,943,000971,0002,433,024
9Feb 20, 2026 02:143,31916,978,6022,921,00002,420,736
10Feb 20, 2026 02:143,32422,324,3891,950,000975,0002,535,424
11Feb 20, 2026 02:153,32419,412,3641,950,000975,0002,428,928
12Feb 20, 2026 02:153,32720,196,6531,952,000976,0002,424,832
13Feb 20, 2026 02:153,33217,486,5761,955,000977,0002,420,736
14Feb 20, 2026 02:153,33529,090,9752,935,00002,428,928
15Feb 20, 2026 02:153,34419,189,339981,0001,962,0002,531,328