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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:44M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:45015,151,7705,001,00002,117,632expected "6442459076 ", got "50700646218 "
2May 17, 2026 08:45013,826,2605,073,00002,117,632expected "6442459076 ", got "50700646218 "
3May 17, 2026 08:45015,142,8765,008,00002,117,632expected "6442459076 ", got "50700646218 "
4Apr 23, 2026 09:3415,25226,765,90912,390,0001,032,0002,392,064
5Apr 23, 2026 09:3415,31530,494,52912,442,0001,036,0002,314,240
6Apr 23, 2026 09:3415,32130,176,38512,446,0001,037,0002,383,872
7Apr 23, 2026 09:3415,32833,283,36113,489,00002,375,680
8Apr 23, 2026 09:3415,33035,262,67412,454,0001,037,0002,383,872
9Apr 23, 2026 09:3415,33428,690,33312,456,0001,038,0002,387,968
10Apr 23, 2026 09:3415,37135,850,00412,487,0001,040,0002,387,968
11Apr 23, 2026 09:3415,37525,722,84612,490,0001,040,0002,453,504
12Apr 23, 2026 09:3415,42933,453,55412,534,0001,044,0002,383,872