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 01:07vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:06M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:0708,499,3761,176,00002,113,536expected "6442459076 ", got "8136 "
2May 17, 2026 07:0709,470,4181,181,00002,113,536expected "6442459076 ", got "8136 "
3May 17, 2026 07:0708,462,6251,174,00002,113,536expected "6442459076 ", got "8136 "
4Feb 5, 2026 01:073,45116,607,0281,012,0002,025,0002,281,472
5Feb 5, 2026 01:073,46722,817,5581,017,0002,034,0002,498,560
6Feb 5, 2026 01:073,47521,362,1451,019,0002,039,0002,498,560
7Feb 5, 2026 01:153,47516,094,2961,019,0002,039,0002,494,464
8Feb 5, 2026 01:073,48119,013,4951,021,0002,042,0002,502,656
9Feb 5, 2026 01:073,48421,835,3291,022,0002,044,0002,490,368
10Feb 5, 2026 01:153,48424,819,5921,022,0002,044,0002,494,464
11Feb 5, 2026 01:073,49224,724,0811,024,0002,049,0002,494,464
12Feb 5, 2026 01:073,49418,062,2681,025,0002,050,0002,277,376
13Feb 5, 2026 01:073,50520,012,7311,028,0002,056,0002,486,272
14Feb 5, 2026 01:073,50620,498,2301,028,0002,057,0002,498,560
15Feb 5, 2026 01:153,52220,586,8981,033,0002,066,0002,494,464