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 6, 2026 04:18zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:40M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:40011,317,9191,128,00002,113,536expected "6442459076 ", got "2305422249 "
2May 17, 2026 06:4008,787,7451,126,00002,113,536expected "6442459076 ", got "2305422249 "
3May 17, 2026 06:4008,552,0641,117,00002,113,536expected "6442459076 ", got "2305422249 "
4Feb 6, 2026 04:193,33514,931,1421,957,000978,0002,289,664
5Feb 6, 2026 04:193,35719,770,6672,954,00002,297,856
6Feb 6, 2026 04:193,35819,414,5711,970,000985,0002,301,952
7Feb 6, 2026 04:193,36318,203,5571,973,000986,0002,297,856
8Feb 6, 2026 04:193,37817,816,465991,0001,982,0002,297,856
9Feb 6, 2026 04:183,38217,885,4021,984,000992,0002,297,856
10Feb 6, 2026 04:143,38217,272,6291,984,000992,0002,277,376
11Feb 6, 2026 04:193,38916,116,4251,988,000994,0002,293,760
12Feb 6, 2026 04:143,39724,556,4681,993,000996,0002,289,664
13Feb 6, 2026 04:213,40315,151,1681,997,000998,0002,289,664
14Feb 6, 2026 04:153,42321,832,5751,004,0002,008,0002,293,760
15Feb 6, 2026 04:193,42418,242,6602,009,0001,004,0002,301,952
16Feb 6, 2026 04:153,42616,973,0432,010,0001,005,0002,297,856
17Feb 6, 2026 04:213,45720,378,6871,014,0002,028,0002,297,856
18Feb 6, 2026 04:193,47020,487,8782,036,0001,018,0002,293,760
19Feb 6, 2026 04:183,48421,974,6792,044,0001,022,0002,273,280
20Feb 6, 2026 04:183,48819,410,8702,046,0001,023,0002,285,568
21Feb 6, 2026 04:213,48819,142,9142,046,0001,023,0002,289,664
22Feb 6, 2026 04:143,48816,441,6612,046,0001,023,0002,277,376
23Feb 6, 2026 04:193,53624,254,2012,075,0001,037,0002,301,952
24Feb 6, 2026 04:153,76018,181,6403,309,00002,273,280
25Feb 6, 2026 04:194,22825,698,2943,721,00002,289,664
26Feb 6, 2026 04:194,27016,541,2523,758,00002,289,664
27Feb 6, 2026 04:194,33619,996,3372,544,0001,272,0002,293,760