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 listDec 22, 2024 12:13zielajzielajScore: 4,075Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 21, 2024 18:014,02318,792,7142,360,0001,180,0002,453,504
2Dec 24, 2024 12:594,03818,172,2642,369,0001,184,0002,457,600
3Dec 24, 2024 12:594,05321,783,9182,378,0001,189,0002,535,424
4Dec 21, 2024 18:014,06020,549,7392,382,0001,191,0002,273,280
5Dec 24, 2024 12:594,06018,740,8852,382,0001,191,0002,453,504
6Dec 21, 2024 18:014,06122,602,4962,383,0001,191,0002,535,424
7Dec 21, 2024 18:014,07024,300,2782,388,0001,194,0002,273,280
8Dec 24, 2024 12:594,07025,503,6392,388,0001,194,0002,535,424
9Dec 21, 2024 18:014,07416,585,1002,390,0001,195,0002,453,504
10Dec 24, 2024 12:594,07415,591,3752,390,0001,195,0002,453,504
11Dec 24, 2024 12:594,07524,697,2202,391,0001,195,0002,461,696
12Dec 21, 2024 18:014,08122,816,2892,394,0001,197,0002,457,600
13Dec 24, 2024 12:594,08221,044,6992,395,0001,197,0002,457,600
14Dec 22, 2024 12:134,10117,166,8332,406,0001,203,0002,461,696
15Dec 22, 2024 12:134,10526,244,0552,408,0001,204,0002,535,424
16Dec 21, 2024 18:014,11617,675,2032,415,0001,207,0002,449,408
17Dec 24, 2024 12:594,13219,495,5082,424,0001,212,0002,457,600
18Dec 22, 2024 12:134,16719,072,4502,445,0001,222,0002,535,424
19Dec 24, 2024 12:594,24521,349,8522,491,0001,245,0002,461,696
20Dec 21, 2024 18:014,28322,251,6402,513,0001,256,0002,535,424
21Dec 21, 2024 18:014,49317,438,9692,636,0001,318,0002,535,424