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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:44M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:45013,884,4412,574,00002,117,632expected "6442459076 ", got "50700646218 "
2May 17, 2026 07:45013,076,4602,659,00002,117,632expected "6442459076 ", got "50700646218 "
3May 17, 2026 07:45011,621,9452,675,00002,117,632expected "6442459076 ", got "50700646218 "
4Apr 23, 2026 20:0711,65426,873,7569,231,0001,025,0002,387,968
5Apr 23, 2026 20:0711,71128,842,1399,276,0001,030,0002,375,680
6Apr 23, 2026 20:0711,72823,989,5099,289,0001,032,0002,375,680
7Apr 23, 2026 20:0711,74231,276,3689,300,0001,033,0002,392,064
8Apr 23, 2026 20:0711,74427,265,8569,302,0001,033,0002,379,776
9Apr 23, 2026 20:0711,75428,368,6569,310,0001,034,0002,383,872
10Apr 23, 2026 20:0711,77728,838,9319,328,0001,036,0002,387,968
11Apr 23, 2026 20:0711,82625,902,5749,367,0001,040,0002,461,696
12Apr 23, 2026 20:0711,87924,042,4999,409,0001,045,0002,387,968