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 21, 2026 03:02zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:18M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:18010,883,0511,056,00002,113,536expected "6442459076 ", got "2305422879 "
2May 17, 2026 05:1809,903,7651,227,00002,113,536expected "6442459076 ", got "2305422879 "
3May 17, 2026 05:1808,767,1211,125,00002,113,536expected "6442459076 ", got "2305422879 "
4Feb 21, 2026 03:023,15019,963,2532,772,00002,437,120
5Feb 21, 2026 02:583,31717,287,1562,919,00002,510,848
6Feb 21, 2026 02:583,31825,165,3121,947,000973,0002,441,216
7Feb 21, 2026 02:583,32716,475,6251,952,000976,0002,277,376
8Feb 21, 2026 03:023,46719,470,6542,034,0001,017,0002,424,832
9Feb 21, 2026 03:023,54916,236,9892,082,0001,041,0002,433,024