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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:39M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:4008,258,2751,103,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 06:40010,506,7311,120,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 06:4009,796,8761,136,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 7, 2026 03:463,37221,937,3061,978,000989,0002,338,816
5Feb 7, 2026 03:463,38321,745,667992,0001,985,0002,355,200
6Feb 7, 2026 03:463,41419,726,0582,003,0001,001,0002,347,008
7Feb 7, 2026 03:463,42019,372,8512,007,0001,003,0002,453,504
8Feb 7, 2026 03:463,50820,802,3852,058,0001,029,0002,351,104
9Feb 7, 2026 03:464,08218,576,8433,592,00002,347,008