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 17, 2026 14:02zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:34M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:3408,894,7271,112,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 06:3408,436,6431,111,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 06:3408,261,4841,047,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 17, 2026 14:003,31722,129,7101,946,000973,0002,437,120
5Feb 17, 2026 14:013,32222,079,8311,949,000974,0002,449,408
6Feb 17, 2026 14:013,32820,000,8662,929,00002,437,120
7Feb 17, 2026 14:013,32824,772,9081,953,000976,0002,277,376
8Feb 17, 2026 14:023,33418,578,2231,956,000978,0002,437,120
9Feb 17, 2026 14:013,33918,718,887979,0001,959,0002,433,024
10Feb 17, 2026 13:593,33920,261,4561,959,000979,0002,433,024
11Feb 17, 2026 14:003,39920,676,3891,994,000997,0002,281,472
12Feb 17, 2026 14:003,45016,249,1732,024,0001,012,0002,437,120
13Feb 17, 2026 13:593,45116,450,2442,025,0001,012,0002,277,376
14Feb 17, 2026 14:013,46120,208,5562,031,0001,015,0002,449,408
15Feb 17, 2026 14:023,48420,211,1392,044,0001,022,0002,437,120
16Feb 17, 2026 14:023,63218,177,5882,131,0001,065,0002,437,120
17Feb 17, 2026 13:593,77818,332,3763,325,00002,437,120
18Feb 17, 2026 14:014,30321,586,9783,787,00002,437,120