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 19, 2024 13:49zielajzielajScore: 4,610Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2024 14:174,51021,451,8212,977,000992,0002,535,424
2Dec 19, 2024 14:174,53323,297,8882,992,000997,0002,494,464
3Dec 19, 2024 14:174,56822,048,9223,015,0001,005,0002,494,464
4Dec 19, 2024 14:014,57319,220,6502,012,0002,012,0002,535,424
5Dec 19, 2024 14:014,57420,399,5023,019,0001,006,0002,535,424
6Dec 19, 2024 14:014,58222,228,9853,024,0001,008,0002,494,464
7Dec 19, 2024 14:014,58221,338,6093,024,0001,008,0002,535,424
8Dec 19, 2024 14:014,59725,268,1673,034,0001,011,0002,535,424
9Dec 19, 2024 14:174,59717,251,9783,034,0001,011,0002,277,376
10Dec 19, 2024 14:174,60024,400,6223,036,0001,012,0002,535,424
11Dec 19, 2024 14:174,60019,710,6463,036,0001,012,0002,494,464
12Dec 19, 2024 14:174,60921,903,0723,042,0001,014,0002,494,464
13Dec 19, 2024 14:104,61020,091,9163,043,0001,014,0002,330,624
14Dec 19, 2024 14:014,61122,467,4393,044,0001,014,0002,535,424
15Dec 19, 2024 14:174,67321,192,5672,056,0002,056,0002,535,424
16Dec 19, 2024 14:174,73222,825,3782,082,0002,082,0002,490,368
17Dec 19, 2024 13:494,73624,171,9742,084,0002,084,0002,535,424
18Dec 19, 2024 14:104,74825,674,7312,089,0002,089,0002,277,376
19Dec 19, 2024 13:494,75025,684,0262,090,0002,090,0002,277,376
20Dec 19, 2024 14:014,75119,655,4523,136,0001,045,0002,277,376
21Dec 19, 2024 14:014,76625,971,8263,146,0001,048,0002,490,368
22Dec 19, 2024 14:014,77315,900,7652,100,0002,100,0002,494,464
23Dec 19, 2024 13:494,77720,250,8932,102,0002,102,0002,494,464
24Dec 19, 2024 14:104,78424,635,2592,105,0002,105,0002,498,560