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 5, 2026 02:08vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:07M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:0808,476,4731,204,00002,113,536expected "6442459076 ", got "8136 "
2May 17, 2026 07:0809,342,0811,207,00002,113,536expected "6442459076 ", got "8136 "
3May 17, 2026 07:0808,504,3651,217,00002,113,536expected "6442459076 ", got "8136 "
4Feb 4, 2026 23:003,46422,622,4581,016,0002,032,0002,498,560
5Feb 4, 2026 23:003,47017,712,5541,018,0002,036,0002,494,464
6Feb 4, 2026 23:003,47222,377,6671,018,0002,037,0002,498,560
7Feb 5, 2026 01:163,47819,675,3501,020,0002,041,0002,502,656
8Feb 5, 2026 02:083,48520,762,8901,022,0002,045,0002,498,560
9Feb 5, 2026 01:163,49218,445,5311,024,0002,049,0002,277,376
10Feb 5, 2026 01:163,49419,713,0731,025,0002,050,0002,277,376
11Feb 5, 2026 02:083,52522,788,1361,034,0002,068,0002,494,464
12Feb 5, 2026 02:083,58117,381,5151,050,0002,101,0002,498,560