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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:43M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:43015,787,1255,082,00002,117,632expected "6442459076 ", got "50700646218 "
2May 17, 2026 08:43015,855,3635,070,00002,117,632expected "6442459076 ", got "50700646218 "
3May 17, 2026 08:43014,694,6985,015,00002,117,632expected "6442459076 ", got "50700646218 "
4Apr 23, 2026 10:1115,11528,413,33212,279,0001,023,0002,379,776
5Apr 23, 2026 10:1115,14827,931,25912,306,0001,025,0002,387,968
6Apr 23, 2026 10:1115,15433,701,99912,311,0001,025,0002,375,680
7Apr 23, 2026 10:1115,17731,536,45812,329,0001,027,0002,392,064
8Apr 23, 2026 10:1115,18229,754,97912,334,0001,027,0002,387,968
9Apr 23, 2026 10:1115,23733,269,33212,378,0001,031,0002,387,968
10Apr 23, 2026 10:1115,28030,174,16012,413,0001,034,0002,379,776
11Apr 23, 2026 10:1115,30430,372,88012,432,0001,036,0002,383,872
12Apr 23, 2026 10:1115,32232,847,98612,447,0001,037,0002,387,968