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 16:10vahookvahookScore: 3,518Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 5, 2026 16:193,41319,213,0261,001,0002,002,0002,285,568
2Feb 5, 2026 16:183,44819,974,5711,011,0002,023,0002,281,472
3Feb 5, 2026 16:223,45321,410,4631,013,0002,026,0002,494,464
4Feb 5, 2026 16:223,45523,720,2691,013,0002,027,0002,502,656
5Feb 5, 2026 16:223,45517,235,4251,013,0002,027,0002,535,424
6Feb 5, 2026 16:213,46821,433,6431,017,0002,035,0002,494,464
7Feb 5, 2026 16:223,47016,381,7431,018,0002,036,0002,281,472
8Feb 5, 2026 16:223,47015,210,1341,018,0002,036,0002,502,656
9Feb 5, 2026 16:193,47520,729,4441,019,0002,039,0002,494,464
10Feb 5, 2026 16:143,47720,029,0531,020,0002,040,0002,498,560
11Feb 5, 2026 16:153,47816,304,2381,020,0002,041,0002,494,464
12Feb 5, 2026 16:183,47821,902,9631,020,0002,041,0002,490,368
13Feb 5, 2026 16:223,48118,340,7051,021,0002,042,0002,502,656
14Feb 5, 2026 16:103,48117,482,6011,021,0002,042,0002,498,560
15Feb 5, 2026 16:193,48420,650,3161,022,0002,044,0002,494,464
16Feb 5, 2026 16:093,49217,779,7911,024,0002,049,0002,494,464
17Feb 5, 2026 16:143,50118,259,4921,027,0002,054,0002,494,464
18Feb 5, 2026 16:093,50817,639,1611,029,0002,058,0002,498,560
19Feb 5, 2026 16:133,51121,886,9891,030,0002,060,0002,490,368
20Feb 5, 2026 16:223,51819,760,0691,032,0002,064,0002,494,464
21Feb 5, 2026 16:213,51919,413,1941,032,0002,065,0002,494,464
22Feb 5, 2026 16:213,52320,686,1691,033,0002,067,0002,494,464
23Feb 5, 2026 16:213,53222,656,6751,036,0002,072,0002,490,368
24Feb 5, 2026 16:183,53619,073,1191,037,0002,075,0002,494,464
25Feb 5, 2026 16:133,54023,809,8171,038,0002,077,0002,494,464
26Feb 5, 2026 16:223,54017,101,8871,038,0002,077,0002,277,376
27Feb 5, 2026 16:153,54219,209,0061,039,0002,078,0002,482,176
28Feb 5, 2026 16:193,54520,773,5621,040,0002,080,0002,494,464
29Feb 5, 2026 16:093,54519,225,8111,040,0002,080,0002,486,272
30Feb 5, 2026 16:153,54917,385,4151,041,0002,082,0002,281,472
31Feb 5, 2026 16:213,55618,603,0551,043,0002,086,0002,277,376
32Feb 5, 2026 16:193,56617,029,9751,046,0002,092,0002,281,472
33Feb 5, 2026 16:213,57016,739,4931,047,0002,095,0002,498,560
34Feb 5, 2026 16:193,58021,731,5321,050,0002,100,0002,502,656
35Feb 5, 2026 16:223,58325,052,5501,051,0002,102,0002,494,464
36Feb 5, 2026 16:103,59119,777,0031,053,0002,107,0002,502,656
37Feb 5, 2026 16:103,62719,254,9991,064,0002,128,0002,498,560
38Feb 5, 2026 16:133,65117,938,1781,071,0002,142,0002,506,752
39Feb 5, 2026 16:143,65818,576,5751,073,0002,146,0002,494,464