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 14, 2026 17:40limanjun99limanjun99Error
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:44011,301,21202,173,0002,121,728expected "6442459076 ", got "2147491626"
2May 17, 2026 08:44011,800,01302,035,0002,121,728expected "6442459076 ", got "2147491626"
3May 17, 2026 08:44011,672,04202,150,0002,121,728expected "6442459076 ", got "2147491626"
4Apr 14, 2026 17:4016,69738,977,03313,644,0001,049,0002,342,912
5Apr 14, 2026 17:4016,70235,157,66312,599,0002,099,0002,437,120
6Apr 14, 2026 17:4016,70741,983,75712,602,0002,100,0002,437,120
7Apr 14, 2026 17:4016,75034,132,69414,740,00002,441,216
8Apr 14, 2026 17:4016,78541,245,76413,716,0001,055,0002,318,336
9Apr 14, 2026 17:4017,28631,727,72913,184,0002,028,0002,498,560
10Apr 14, 2026 17:4017,31935,186,70813,209,0002,032,0002,433,024
11Apr 14, 2026 17:4017,37232,296,19913,249,0002,038,0002,441,216
12Apr 14, 2026 17:4017,44545,189,55912,282,0003,070,0002,441,216