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 listApr 23, 2026 09:42Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:45M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:45015,848,6335,300,00002,121,728expected "6442459076 ", got "50700646218 "
2May 17, 2026 08:45014,647,4035,237,00002,117,632expected "6442459076 ", got "50700646218 "
3May 17, 2026 08:45014,320,2765,331,00002,117,632expected "6442459076 ", got "50700646218 "
4Apr 23, 2026 09:4215,32329,396,18212,448,0001,037,0002,383,872
5Apr 23, 2026 09:4215,32530,409,60812,449,0001,037,0002,383,872
6Apr 23, 2026 09:4215,34031,881,26012,462,0001,038,0002,392,064
7Apr 23, 2026 09:4215,38534,667,9289,373,0004,166,0002,379,776
8Apr 23, 2026 09:4215,40930,202,38712,517,0001,043,0002,387,968
9Apr 23, 2026 09:4215,42232,151,17712,528,0001,044,0002,383,872
10Apr 23, 2026 09:4215,42630,419,07011,487,0002,088,0002,387,968
11Apr 23, 2026 09:4215,43133,866,67912,536,0001,044,0002,379,776
12Apr 23, 2026 09:4215,46328,009,88512,562,0001,046,0002,445,312