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 listFeb 6, 2026 03:48zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:34M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:34010,200,1941,029,00002,113,536expected "6442459076 ", got "2305422249 "
2May 17, 2026 06:3409,998,0421,105,00002,113,536expected "6442459076 ", got "2305422249 "
3May 17, 2026 06:3408,284,9111,013,00002,113,536expected "6442459076 ", got "2305422249 "
4Feb 6, 2026 03:483,34117,837,5811,960,000980,0002,535,424
5Feb 6, 2026 03:483,35121,993,9891,966,000983,0002,375,680
6Feb 6, 2026 03:483,36617,252,4471,975,000987,0002,519,040
7Feb 6, 2026 03:483,38524,902,1201,986,000993,0002,375,680
8Feb 6, 2026 03:483,40316,562,9381,997,000998,0002,383,872
9Feb 6, 2026 03:483,48120,368,4932,042,0001,021,0002,371,584
10Feb 6, 2026 03:483,51124,234,6111,030,0002,060,0002,371,584
11Feb 6, 2026 03:483,52220,107,6421,033,0002,066,0002,383,872
12Feb 6, 2026 03:484,16318,456,8393,663,00002,519,040