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 11:08Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:42M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:42012,918,4934,038,00002,121,728expected "6442459076 ", got "50700646218 "
2May 17, 2026 08:42015,737,9413,998,00002,121,728expected "6442459076 ", got "50700646218 "
3May 17, 2026 08:42012,755,3224,018,00002,117,632expected "6442459076 ", got "50700646218 "
4Apr 23, 2026 11:0914,79230,968,51511,015,0002,002,0002,326,528
5Apr 23, 2026 11:0914,81029,295,69511,028,0002,005,0002,396,160
6Apr 23, 2026 11:0914,82133,401,05711,037,0002,006,0002,383,872
7Apr 23, 2026 11:0914,85431,348,78011,061,0002,011,0002,392,064
8Apr 23, 2026 11:0914,86529,911,89911,070,0002,012,0002,318,336
9Apr 23, 2026 11:0915,04231,223,53812,219,0001,018,0002,387,968
10Apr 23, 2026 11:0915,04235,581,63613,237,00002,383,872
11Apr 23, 2026 11:0915,08730,454,19912,256,0001,021,0002,383,872
12Apr 23, 2026 11:0915,15130,608,88412,308,0001,025,0002,383,872