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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:25M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:26011,237,7611,037,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 05:2608,422,0211,035,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 05:2608,346,1541,032,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 17, 2026 03:213,32018,689,4131,948,000974,0002,441,216
5Feb 17, 2026 03:223,32220,192,6001,949,000974,0002,445,312
6Feb 17, 2026 03:213,32424,038,4302,925,00002,277,376
7Feb 17, 2026 03:213,32523,345,6611,951,000975,0002,277,376
8Feb 17, 2026 03:213,33421,626,4632,934,00002,437,120
9Feb 17, 2026 03:213,33516,637,9191,957,000978,0002,445,312
10Feb 17, 2026 03:223,38518,303,0881,986,000993,0002,441,216
11Feb 17, 2026 03:213,39220,809,4461,990,000995,0002,445,312
12Feb 17, 2026 03:223,39221,840,9321,990,000995,0002,441,216
13Feb 17, 2026 03:213,40623,724,9391,998,000999,0002,445,312
14Feb 17, 2026 03:213,46824,911,1052,035,0001,017,0002,437,120
15Feb 17, 2026 03:214,15317,360,8123,655,00002,441,216