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 listMay 5, 2026 01:02olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:40M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:40015,031,4324,568,00002,117,632expected "6442459076 ", got "2147490262 "
2May 17, 2026 08:40013,169,2304,554,00002,117,632expected "6442459076 ", got "2147490262 "
3May 17, 2026 08:40013,156,0714,539,00002,117,632expected "6442459076 ", got "2147490262 "
4May 5, 2026 01:0511,78924,393,4489,257,0001,118,0002,453,504
5May 5, 2026 01:0511,79827,248,7559,267,0001,116,0002,449,408
6May 5, 2026 01:0511,81330,542,3019,244,0001,152,0002,461,696
7May 5, 2026 01:0511,81325,007,4549,272,0001,124,0002,461,696
8May 5, 2026 01:0511,81830,421,0299,247,0001,153,0002,457,600
9May 5, 2026 01:0511,83124,646,0999,286,0001,126,0002,449,408
10May 5, 2026 01:0511,83528,311,5609,248,0001,167,0002,469,888
11May 5, 2026 01:0511,84628,576,2569,280,0001,145,0002,461,696
12May 5, 2026 01:0511,87526,814,6899,312,0001,138,0002,453,504