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 16:53vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:59M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:59011,819,6061,215,00002,117,632expected "6442459076 ", got " "stderr
2May 17, 2026 06:5909,430,8561,200,00002,117,632expected "6442459076 ", got " "stderr
3May 17, 2026 06:5909,407,5771,245,00002,117,632expected "6442459076 ", got " "stderr
4Feb 5, 2026 16:533,45722,872,0201,014,0002,028,0002,281,472
5Feb 5, 2026 16:533,45821,930,9461,014,0002,029,0002,498,560
6Feb 5, 2026 16:533,46720,835,5511,017,0002,034,0002,277,376
7Feb 5, 2026 16:533,47024,440,7461,018,0002,036,0002,498,560
8Feb 5, 2026 16:533,47016,629,8101,018,0002,036,0002,494,464
9Feb 5, 2026 16:533,47220,108,0971,018,0002,037,0002,486,272
10Feb 5, 2026 16:533,47521,331,1451,019,0002,039,0002,502,656
11Feb 5, 2026 16:533,51918,617,1741,032,0002,065,0002,494,464
12Feb 5, 2026 16:533,52317,096,8281,033,0002,067,0002,498,560