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 listMay 22, 2024 09:27Ivan BessonovIvan BessonovScore: 15,377Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2024 10:3114,96929,089,24111,147,0002,026,0002,285,568
2May 22, 2024 10:3114,97230,486,99111,148,0002,027,0002,351,104
3May 22, 2024 09:2714,98531,835,71911,159,0002,028,0002,355,200
4May 22, 2024 10:3115,01830,321,54711,183,0002,033,0002,347,008
5May 22, 2024 10:3115,07228,736,70612,243,0001,020,0002,289,664
6May 22, 2024 09:2715,07636,643,48611,226,0002,041,0002,347,008
7May 22, 2024 09:2715,11436,558,33412,277,0001,023,0002,351,104
8May 22, 2024 10:3115,11435,626,11111,254,0002,046,0002,289,664
9May 22, 2024 09:2715,11935,598,00511,258,0002,047,0002,351,104
10May 22, 2024 09:2715,12232,431,80511,260,0002,047,0002,289,664
11May 22, 2024 10:3115,12431,033,05212,286,0001,023,0002,289,664
12May 22, 2024 10:3115,12835,668,90412,289,0001,024,0002,289,664
13May 22, 2024 09:2715,37730,716,45413,532,00002,342,912
14May 22, 2024 10:3115,39138,431,69212,503,0001,041,0002,289,664
15May 22, 2024 09:2715,56663,099,64913,697,69202,342,912
16May 22, 2024 09:2715,60677,335,87513,733,36102,211,840
17May 22, 2024 10:3115,63539,575,42612,701,0001,058,0002,351,104
18May 22, 2024 09:2715,64762,769,41013,769,00202,330,624
19May 22, 2024 09:2715,69034,484,42612,745,0001,062,0002,289,664
20May 22, 2024 09:2715,69937,806,05212,753,0001,062,0002,351,104
21May 22, 2024 09:2715,82235,447,93611,934,0001,989,0002,289,664
22May 22, 2024 10:3116,14064,427,41014,202,89602,224,128
23May 22, 2024 10:3116,29357,015,53114,338,05702,203,648
24May 22, 2024 10:3116,36897,080,47714,404,17702,215,936