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 15, 2026 04:14limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 13:21M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 13:49013,461,29702,108,0002,121,728expected "6442459076 ", got "2147491589"
2May 17, 2026 13:49013,032,90302,106,0002,121,728expected "6442459076 ", got "2147491589"
3May 17, 2026 13:49014,031,67802,430,0002,121,728expected "6442459076 ", got "2147491589"
4Apr 15, 2026 04:1416,59033,139,89412,514,0002,085,0002,355,200
5Apr 15, 2026 04:1416,67831,895,37411,532,0003,145,0002,347,008
6Apr 15, 2026 04:1416,69930,302,90714,695,00002,469,888
7Apr 15, 2026 04:1417,23038,164,41612,130,0003,032,0002,441,216
8Apr 15, 2026 04:1417,25645,298,02913,161,0002,024,0002,465,792
9Apr 15, 2026 04:1417,28532,334,61113,183,0002,028,0002,437,120
10Apr 15, 2026 04:1417,28834,772,66513,185,0002,028,0002,461,696
11Apr 15, 2026 04:1417,32741,293,84513,215,0002,033,0002,342,912
12Apr 15, 2026 04:1417,34233,693,11913,227,0002,034,0002,453,504