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 7, 2026 04:16vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:23M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:2309,364,0141,193,00002,113,536expected "6442459076 ", got "1 "
2May 17, 2026 05:2309,718,4451,254,00002,113,536expected "6442459076 ", got "1 "
3May 17, 2026 05:23011,004,3141,189,00002,113,536expected "6442459076 ", got "1 "
4Feb 7, 2026 04:123,35521,649,257984,0001,968,0002,494,464
5Feb 7, 2026 04:123,35918,970,1431,478,0001,478,0002,494,464
6Feb 7, 2026 04:123,38918,532,708994,0001,988,0002,498,560
7Feb 7, 2026 04:123,39020,162,758994,0001,989,0002,490,368
8Feb 7, 2026 04:123,39919,493,622997,0001,994,0002,494,464
9Feb 7, 2026 04:163,40216,481,708998,0001,996,0002,277,376
10Feb 7, 2026 04:123,40321,076,737998,0001,997,0002,486,272
11Feb 7, 2026 04:143,40322,969,182998,0001,997,0002,494,464
12Feb 7, 2026 04:143,40724,375,515999,0001,999,0002,498,560
13Feb 7, 2026 04:123,41615,397,6221,002,0002,004,0002,277,376
14Feb 7, 2026 04:123,43016,655,1241,006,0002,012,0002,490,368
15Feb 7, 2026 04:163,43622,588,9951,008,0002,016,0002,494,464
16Feb 7, 2026 04:123,45819,218,4511,014,0002,029,0002,486,272
17Feb 7, 2026 04:163,46417,724,8911,016,0002,032,0002,494,464
18Feb 7, 2026 04:143,49420,590,7521,025,0002,050,0002,502,656