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:15zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:16M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:1609,991,6371,044,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 05:1609,542,8421,112,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 05:1609,088,8601,028,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 20, 2026 02:153,15516,113,6602,776,00002,433,024
5Feb 20, 2026 02:143,16518,057,8732,785,00002,428,928
6Feb 20, 2026 02:143,16520,844,5172,785,00002,428,928
7Feb 20, 2026 02:143,17522,371,4652,794,00002,433,024
8Feb 20, 2026 02:153,18618,438,9012,804,00002,424,832
9Feb 20, 2026 02:153,30116,964,8861,937,000968,0002,420,736
10Feb 20, 2026 02:153,30918,393,8572,912,00002,420,736
11Feb 20, 2026 02:143,31123,617,0911,943,000971,0002,433,024
12Feb 20, 2026 02:143,31916,978,6022,921,00002,420,736
13Feb 20, 2026 02:153,32419,412,3641,950,000975,0002,428,928
14Feb 20, 2026 02:143,32422,324,3891,950,000975,0002,535,424
15Feb 20, 2026 02:153,32720,196,6531,952,000976,0002,424,832
16Feb 20, 2026 02:153,33217,486,5761,955,000977,0002,420,736
17Feb 20, 2026 02:153,33529,090,9752,935,00002,428,928
18Feb 20, 2026 02:153,34419,189,339981,0001,962,0002,531,328