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 17:29vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:09M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:0909,321,5951,215,00002,117,632expected "6442459076 ", got " "stderr
2May 17, 2026 07:0908,980,7461,281,00002,117,632expected "6442459076 ", got " "stderr
3May 17, 2026 07:09011,262,0591,295,00002,117,632expected "6442459076 ", got " "stderr
4Feb 5, 2026 17:223,46021,366,3641,015,0002,030,0002,281,472
5Feb 5, 2026 17:293,46120,586,5441,015,0002,031,0002,277,376
6Feb 5, 2026 17:183,47222,358,3792,037,0001,018,0002,490,368
7Feb 5, 2026 17:183,47419,957,8741,019,0002,038,0002,498,560
8Feb 5, 2026 17:183,47717,785,5631,020,0002,040,0002,490,368
9Feb 5, 2026 17:223,48421,356,6561,022,0002,044,0002,281,472
10Feb 5, 2026 17:183,48522,631,7831,022,0002,045,0002,494,464
11Feb 5, 2026 17:293,48820,034,5551,023,0002,046,0002,490,368
12Feb 5, 2026 17:293,48917,395,9201,023,0002,047,0002,498,560
13Feb 5, 2026 17:293,48920,113,0611,023,0002,047,0002,281,472
14Feb 5, 2026 17:293,49518,912,0481,025,0002,051,0002,494,464
15Feb 5, 2026 17:183,50223,738,1611,027,0002,055,0002,494,464
16Feb 5, 2026 17:293,50617,813,0981,028,0002,057,0002,494,464
17Feb 5, 2026 17:183,50817,748,9321,029,0002,058,0002,498,560
18Feb 5, 2026 17:223,51519,310,3261,031,0002,062,0002,277,376