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 listJan 21, 2026 14:01Johan SannemoJohan SannemoError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Apr 24, 2026 13:05Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 13:05025,189,9444,052,0002,026,0002,437,120expected "10967335084194 ", got "10967333433211 "
2Apr 24, 2026 13:05026,152,5843,084,0003,084,0002,441,216expected "11104600840325 ", got "11104599153318 "
3Apr 24, 2026 13:05023,372,0073,080,0003,080,0002,441,216expected "11014406136581 ", got "11014404470596 "
4Jan 21, 2026 14:018,43824,368,8397,425,00002,494,464
5Jan 21, 2026 14:018,44327,382,2715,307,0002,123,0002,502,656
6Jan 21, 2026 14:018,50127,664,7266,413,0001,068,0002,285,568
7Jan 21, 2026 14:018,51129,827,1725,350,0002,140,0002,285,568
8Jan 21, 2026 14:018,53323,411,7367,509,00002,285,568
9Jan 21, 2026 14:018,54428,156,4525,371,0002,148,0002,498,560
10Jan 21, 2026 14:018,55326,393,7416,452,0001,075,0002,506,752
11Jan 21, 2026 14:018,66530,755,3205,447,0002,178,0002,498,560
12Jan 21, 2026 14:018,70324,154,5087,659,00002,285,568