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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:04M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:0508,623,8571,110,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 07:05010,063,8951,107,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 07:0508,239,8491,021,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 7, 2026 03:533,35817,518,7352,955,00002,273,280
5Feb 7, 2026 03:533,40022,092,7251,995,000997,0002,535,424
6Feb 7, 2026 03:533,46519,933,7352,033,0001,016,0002,347,008
7Feb 7, 2026 03:533,47016,571,5602,036,0001,018,0002,486,272
8Feb 7, 2026 03:533,48119,762,5762,042,0001,021,0002,355,200
9Feb 7, 2026 03:533,48216,762,7212,043,0001,021,0002,277,376