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 19:42vahookvahookScore: 3,481Success
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 19:413,44118,931,8101,009,0002,019,0002,494,464
2Feb 5, 2026 17:303,44820,285,1801,011,0002,023,0002,277,376
3Feb 5, 2026 19:423,45722,639,0041,014,0002,028,0002,494,464
4Feb 5, 2026 19:413,46019,895,2861,015,0002,030,0002,498,560
5Feb 5, 2026 17:303,46417,213,6701,016,0002,032,0002,494,464
6Feb 5, 2026 17:313,46519,356,4831,016,0002,033,0002,498,560
7Feb 5, 2026 19:423,46523,730,2871,016,0002,033,0002,502,656
8Feb 5, 2026 17:303,46521,013,2381,016,0002,033,0002,277,376
9Feb 5, 2026 17:313,46719,010,5221,017,0002,034,0002,498,560
10Feb 5, 2026 19:413,46719,184,1731,017,0002,034,0002,494,464
11Feb 5, 2026 17:313,46821,917,4861,017,0002,035,0002,281,472
12Feb 5, 2026 17:303,47021,068,8921,018,0002,036,0002,494,464
13Feb 5, 2026 19:413,47217,898,7261,018,0002,037,0002,281,472
14Feb 5, 2026 19:413,47219,513,9031,018,0002,037,0002,490,368
15Feb 5, 2026 19:413,47720,297,5081,020,0002,040,0002,494,464
16Feb 5, 2026 19:413,47826,021,5251,020,0002,041,0002,494,464
17Feb 5, 2026 17:303,48123,499,8471,021,0002,042,0002,498,560
18Feb 5, 2026 17:313,48124,032,7571,021,0002,042,0002,486,272
19Feb 5, 2026 19:423,48118,875,3701,021,0002,042,0002,494,464
20Feb 5, 2026 19:423,48118,199,2391,021,0002,042,0002,490,368
21Feb 5, 2026 19:413,48426,740,3361,022,0002,044,0002,498,560
22Feb 5, 2026 19:413,48421,563,7461,022,0002,044,0002,498,560
23Feb 5, 2026 17:313,48416,375,3101,022,0002,044,0002,277,376
24Feb 5, 2026 17:303,48518,326,4871,022,0002,045,0002,277,376
25Feb 5, 2026 17:303,48817,135,2131,023,0002,046,0002,502,656
26Feb 5, 2026 19:423,49522,893,2861,025,0002,051,0002,277,376
27Feb 5, 2026 17:313,50120,400,6921,027,0002,054,0002,490,368
28Feb 5, 2026 17:313,50121,393,2911,027,0002,054,0002,490,368
29Feb 5, 2026 17:303,50521,435,9271,028,0002,056,0002,498,560
30Feb 5, 2026 19:423,50621,401,8951,028,0002,057,0002,281,472
31Feb 5, 2026 17:313,51319,774,9461,030,0002,061,0002,277,376
32Feb 5, 2026 17:303,51323,780,4371,030,0002,061,0002,277,376
33Feb 5, 2026 17:313,52226,446,8401,033,0002,066,0002,494,464
34Feb 5, 2026 19:423,52320,808,6271,033,0002,067,0002,486,272
35Feb 5, 2026 19:423,52820,185,9941,035,0002,070,0002,502,656
36Feb 5, 2026 19:423,67819,482,0941,079,0002,158,0002,535,424