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 19, 2026 13:05zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:25M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:2509,421,2271,014,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 05:2509,577,6331,027,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 05:25010,439,7101,027,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 19, 2026 13:043,13118,290,7102,755,00002,433,024
5Feb 19, 2026 13:053,13920,373,9392,762,00002,424,832
6Feb 19, 2026 13:053,18819,059,0222,805,00002,428,928
7Feb 19, 2026 13:053,31720,962,4652,919,00002,416,640
8Feb 19, 2026 13:043,32023,930,8591,948,000974,0002,416,640
9Feb 19, 2026 13:053,33420,884,9171,956,000978,0002,428,928
10Feb 19, 2026 13:053,37820,320,9511,982,000991,0002,424,832
11Feb 19, 2026 13:053,63219,301,0722,131,0001,065,0002,420,736
12Feb 19, 2026 13:053,65820,428,0222,146,0001,073,0002,416,640
13Feb 19, 2026 13:043,82324,977,7873,364,00002,424,832
14Feb 19, 2026 13:053,87018,896,4972,271,0001,135,0002,424,832
15Feb 19, 2026 13:053,91919,962,9543,449,00002,424,832