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 8, 2026 18:06zielajzielajScore: 3,444Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 8, 2026 18:083,31721,166,7782,919,00002,392,064
2Feb 8, 2026 18:073,31823,591,9331,947,000973,0002,392,064
3Feb 8, 2026 18:083,32021,297,0281,948,000974,0002,387,968
4Feb 8, 2026 18:073,32022,582,0541,948,000974,0002,383,872
5Feb 8, 2026 18:073,32220,489,8421,949,000974,0002,387,968
6Feb 8, 2026 18:063,32419,224,8462,925,00002,396,160
7Feb 8, 2026 18:073,32421,954,3411,950,000975,0002,387,968
8Feb 8, 2026 18:073,32523,639,9871,951,000975,0002,510,848
9Feb 8, 2026 20:003,33020,836,7422,930,00002,400,256
10Feb 8, 2026 20:003,34821,970,5201,964,000982,0002,531,328
11Feb 8, 2026 18:073,34924,290,8391,965,000982,0002,392,064
12Feb 8, 2026 18:073,35614,864,5491,969,000984,0002,400,256
13Feb 8, 2026 18:073,35823,957,9831,970,000985,0002,277,376
14Feb 8, 2026 18:083,43124,939,8402,013,0001,006,0002,400,256
15Feb 8, 2026 18:083,43418,155,1251,007,0002,015,0002,392,064
16Feb 8, 2026 18:083,44422,806,9402,021,0001,010,0002,387,968
17Feb 8, 2026 20:023,46821,339,2762,035,0001,017,0002,387,968
18Feb 8, 2026 20:023,47019,910,0802,036,0001,018,0002,392,064
19Feb 8, 2026 18:083,47220,836,5482,037,0001,018,0002,277,376
20Feb 8, 2026 18:073,47817,767,1101,020,0002,041,0002,383,872
21Feb 8, 2026 18:083,47824,784,7652,041,0001,020,0002,277,376
22Feb 8, 2026 18:073,48117,560,3772,042,0001,021,0002,396,160
23Feb 8, 2026 18:063,48918,612,9262,047,0001,023,0002,392,064
24Feb 8, 2026 20:023,49519,147,4932,051,0001,025,0002,396,160
25Feb 8, 2026 18:073,49816,766,7911,026,0002,052,0002,277,376
26Feb 8, 2026 18:083,49920,046,1782,053,0001,026,0002,387,968
27Feb 8, 2026 18:083,89221,522,2943,425,00002,387,968
28Feb 8, 2026 18:074,26921,819,4193,757,00002,387,968
29Feb 8, 2026 18:064,32624,758,5332,538,0001,269,0002,392,064
30Feb 8, 2026 20:004,45522,909,4331,960,0001,960,0002,531,328