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 29, 2026 19:59olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:39M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:39015,810,3894,477,00002,117,632expected "6442459076 ", got "2147490262 "
2May 17, 2026 08:39014,969,8804,520,00002,117,632expected "6442459076 ", got "2147490262 "
3May 17, 2026 08:39013,136,9474,483,00002,117,632expected "6442459076 ", got "2147490262 "
4Apr 29, 2026 20:0011,67123,642,3689,244,0001,027,0002,433,024
5Apr 29, 2026 20:0011,72030,245,9459,283,0001,031,0002,424,832
6Apr 29, 2026 20:0011,72027,547,5589,283,0001,031,0002,433,024
7Apr 29, 2026 20:0011,73126,357,2739,292,0001,032,0002,457,600
8Apr 29, 2026 20:0011,74526,666,1839,303,0001,033,0002,494,464
9Apr 29, 2026 20:0011,74626,067,1349,304,0001,033,0002,433,024
10Apr 29, 2026 20:0011,76126,888,6609,315,0001,035,0002,424,832
11Apr 29, 2026 20:0011,79425,001,15510,379,00002,428,928
12Apr 29, 2026 20:0011,88621,853,7089,414,0001,046,0002,330,624