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 7, 2026 05:52vahookvahookScore: 3,393Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 19:093,33818,496,136979,0001,958,0002,510,848
2Feb 7, 2026 06:033,35518,239,003984,0001,968,0002,494,464
3Feb 7, 2026 19:093,36317,899,873986,0001,973,0002,494,464
4Feb 7, 2026 06:033,36519,905,323987,0001,974,0002,273,280
5Feb 7, 2026 06:033,36622,603,742987,0001,975,0002,502,656
6Feb 7, 2026 19:093,36618,171,547987,0001,975,0002,498,560
7Feb 7, 2026 19:093,37318,224,445989,0001,979,0002,498,560
8Feb 7, 2026 06:033,37818,151,042991,0001,982,0002,277,376
9Feb 7, 2026 06:033,38021,316,197991,0001,983,0002,277,376
10Feb 7, 2026 05:563,38316,737,872992,0001,985,0002,535,424
11Feb 7, 2026 05:523,38518,784,998993,0001,986,0002,502,656
12Feb 7, 2026 05:513,38621,926,675993,0001,987,0002,490,368
13Feb 7, 2026 06:033,38617,363,3242,980,00002,490,368
14Feb 7, 2026 19:093,38622,414,010993,0001,987,0002,277,376
15Feb 7, 2026 05:553,38922,272,989994,0001,988,0002,494,464
16Feb 7, 2026 19:093,39321,343,333995,0001,991,0002,494,464
17Feb 7, 2026 06:033,39324,271,755995,0001,991,0002,277,376
18Feb 7, 2026 06:033,39520,488,226996,0001,992,0002,535,424
19Feb 7, 2026 05:513,39524,031,670996,0001,992,0002,490,368
20Feb 7, 2026 05:513,40018,504,330997,0001,995,0002,498,560
21Feb 7, 2026 05:563,40221,414,894998,0001,996,0002,498,560
22Feb 7, 2026 05:553,40319,912,569998,0001,997,0002,277,376
23Feb 7, 2026 19:093,40318,879,926998,0001,997,0002,506,752
24Feb 7, 2026 05:563,40621,287,879999,0001,998,0002,502,656
25Feb 7, 2026 06:033,40616,110,953999,0001,998,0002,535,424
26Feb 7, 2026 05:523,40718,643,984999,0001,999,0002,502,656
27Feb 7, 2026 19:093,40914,342,8441,000,0002,000,0002,531,328
28Feb 7, 2026 05:523,44317,562,3261,010,0002,020,0002,281,472
29Feb 7, 2026 19:093,46720,019,6731,017,0002,034,0002,281,472
30Feb 7, 2026 05:553,47424,984,9481,019,0002,038,0002,486,272