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 28, 2026 19:39zielajzielajError
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:1709,165,1691,067,00002,113,536expected "6442459076 ", got "2305422676 "
2May 17, 2026 05:17010,572,8831,169,00002,113,536expected "6442459076 ", got "2305422676 "
3May 17, 2026 05:17011,733,9921,151,00002,113,536expected "6442459076 ", got "2305422676 "
4Feb 28, 2026 19:403,11916,895,2012,745,00002,277,376
5Feb 28, 2026 19:403,12318,194,7692,748,00002,420,736
6Feb 28, 2026 19:403,14214,732,5492,765,00002,424,832
7Feb 28, 2026 19:403,15520,594,8722,776,00002,433,024
8Feb 28, 2026 19:393,16924,604,4162,789,00002,428,928
9Feb 28, 2026 19:393,24017,658,102950,0001,901,0002,420,736
10Feb 28, 2026 19:393,31520,925,6011,945,000972,0002,535,424
11Feb 28, 2026 19:393,32216,442,2731,949,000974,0002,420,736
12Feb 28, 2026 19:393,32716,625,7061,952,000976,0002,424,832
13Feb 28, 2026 19:393,34918,252,7341,965,000982,0002,424,832
14Feb 28, 2026 19:403,61522,923,3212,121,0001,060,0002,535,424
15Feb 28, 2026 19:403,69318,794,3062,167,0001,083,0002,420,736