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 4, 2026 23:35olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:36M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:36015,821,5384,493,00002,117,632expected "6442459076 ", got "2147490262 "
2May 17, 2026 08:36019,810,2254,506,00002,117,632expected "6442459076 ", got "2147490262 "
3May 17, 2026 08:36013,200,3784,522,00002,117,632expected "6442459076 ", got "2147490262 "
4May 4, 2026 23:3811,55624,666,5329,118,0001,052,0002,441,216
5May 4, 2026 23:3811,58128,202,4569,139,0001,053,0002,461,696
6May 4, 2026 23:3811,66426,359,8639,150,0001,115,0002,457,600
7May 4, 2026 23:3811,69227,195,7959,141,0001,148,0002,453,504
8May 4, 2026 23:3811,72030,112,1739,158,0001,156,0002,461,696
9May 4, 2026 23:3811,73525,140,3829,181,0001,146,0002,445,312
10May 4, 2026 23:3811,74026,319,9669,174,0001,158,0002,461,696
11May 4, 2026 23:3811,74827,208,4029,201,0001,138,0002,457,600
12May 4, 2026 23:3811,75726,713,9139,204,0001,143,0002,449,408