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:18zielajzielajScore: 3,426Success
Source Code

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

Challenge History

No challenges yet.

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