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 30, 2026 10:30olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 12:59M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 12:59013,414,9254,652,00002,117,632expected "6442459076 ", got "2147490262 "
2May 17, 2026 12:59013,394,3034,649,00002,117,632expected "6442459076 ", got "2147490262 "
3May 17, 2026 12:59013,602,6244,658,00002,117,632expected "6442459076 ", got "2147490262 "
4Apr 30, 2026 10:3111,79617,022,7209,343,0001,038,0002,330,624
5Apr 30, 2026 10:3111,88217,216,1489,412,0001,045,0002,363,392
6Apr 30, 2026 10:3111,97217,021,6229,483,0001,053,0002,334,720
7Apr 30, 2026 10:3111,98417,160,20010,546,00002,560,000
8Apr 30, 2026 10:3111,99717,026,98910,558,00002,437,120
9Apr 30, 2026 10:3112,02917,239,41310,586,00002,551,808
10Apr 30, 2026 10:3112,16717,226,7039,637,0001,070,0002,330,624
11Apr 30, 2026 10:3112,18917,320,47010,727,00002,564,096
12Apr 30, 2026 10:3112,19317,238,26610,730,00002,338,816