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 listJun 27, 2026 14:12Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 23:03Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 00:320149,837,811141,682,00002,113,536expected "32237368799275 ", got "26718182018965 "
2Sep 5, 2026 00:320164,469,543156,464,00002,113,536expected "28515230606381 ", got "23566386187815 "
3Sep 5, 2026 00:320165,128,606157,174,00002,113,536expected "26294990845079 ", got "23061999722736 "
4Jun 27, 2026 14:145,09611,896,8094,485,00002,113,536
5Jun 27, 2026 14:145,21511,957,2274,590,00002,113,536
6Jun 27, 2026 14:145,23211,907,5104,605,00002,113,536
7Jun 27, 2026 14:145,24212,157,1074,613,00002,113,536
8Jun 27, 2026 14:145,26412,025,3184,633,00002,113,536
9Jun 27, 2026 14:145,28511,972,0214,651,00002,113,536
10Jun 27, 2026 14:145,33812,024,9544,698,00002,113,536
11Jun 27, 2026 14:145,37012,215,7314,726,00002,113,536
12Jun 27, 2026 14:145,37912,068,2074,734,00002,113,536