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 17, 2024 09:07Ivan BessonovIvan BessonovScore: 23,299Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 08:1923,06943,235,30219,286,0001,015,0002,265,088
2May 17, 2024 09:1223,08845,909,54019,302,0001,015,0002,289,664
3May 17, 2024 09:0723,13048,708,35719,337,0001,017,0002,269,184
4May 17, 2024 09:0723,13141,789,14718,320,0002,035,0002,281,472
5May 17, 2024 08:1923,15842,489,95620,379,00002,289,664
6May 17, 2024 09:1223,16148,227,23119,363,0001,019,0002,289,664
7May 17, 2024 09:1223,16740,975,35719,368,0001,019,0002,281,472
8May 17, 2024 08:1923,18043,808,72219,379,0001,019,0002,289,664
9May 17, 2024 09:0723,18245,929,67220,400,00002,277,376
10May 17, 2024 09:1223,21342,923,37319,406,0001,021,0002,269,184
11May 17, 2024 08:1923,21943,382,34820,433,00002,289,664
12May 17, 2024 08:1923,22047,400,42220,434,00002,289,664
13May 17, 2024 09:1223,22846,259,63819,419,0001,022,0002,277,376
14May 17, 2024 09:1223,23440,519,98819,424,0001,022,0002,269,184
15May 17, 2024 09:0723,24541,304,72120,456,00002,289,664
16May 17, 2024 08:1923,24743,682,96519,435,0001,022,0002,289,664
17May 17, 2024 08:1923,25846,791,80319,444,0001,023,0002,281,472
18May 17, 2024 09:0723,26542,904,41820,473,00002,277,376
19May 17, 2024 09:1223,29942,368,87019,478,0001,025,0002,289,664
20May 17, 2024 08:1923,30543,615,20319,483,0001,025,0002,281,472
21May 17, 2024 09:1223,30749,130,12419,485,0001,025,0002,289,664
22May 17, 2024 09:1223,34844,046,88819,519,0001,027,0002,289,664
23May 17, 2024 09:0723,35044,360,37119,521,0001,027,0002,289,664
24May 17, 2024 09:0723,35541,652,25919,525,0001,027,0002,359,296
25May 17, 2024 08:1923,36343,385,34020,559,00002,371,584
26May 17, 2024 09:0723,37041,717,45319,538,0001,028,0002,277,376
27May 17, 2024 09:0723,37843,048,99119,545,0001,028,0002,371,584
28May 17, 2024 09:1223,47882,468,84020,660,58502,256,896
29May 17, 2024 08:1923,51194,791,01220,689,29402,256,896
30May 17, 2024 09:0723,53386,250,56620,708,92802,269,184
31May 17, 2024 09:0723,57795,221,88320,748,12902,269,184
32May 17, 2024 09:0723,58586,400,45620,754,83902,256,896
33May 17, 2024 08:1923,62891,003,61620,792,72702,260,992
34May 17, 2024 09:1223,66593,783,42420,825,36502,265,088
35May 17, 2024 09:1223,69089,488,34220,847,37602,260,992
36May 17, 2024 08:1923,76188,768,37720,910,11002,379,776