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 18, 2024 17:52Ivan BessonovIvan BessonovScore: 17,568Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 17:5217,02332,278,72512,983,0001,997,0002,289,664
2May 18, 2024 17:5217,03935,474,31412,995,0001,999,0002,289,664
3May 18, 2024 18:0417,04037,859,27012,996,0001,999,0002,289,664
4May 18, 2024 17:5217,09836,258,54213,040,0002,006,0002,289,664
5May 18, 2024 17:5217,10532,210,12413,045,0002,007,0002,289,664
6May 18, 2024 18:0417,11534,082,10513,053,0002,008,0002,289,664
7May 18, 2024 18:0417,12334,293,16013,059,0002,009,0002,289,664
8May 18, 2024 18:0417,13841,075,83014,076,0001,005,0002,289,664
9May 18, 2024 18:0417,17231,583,04413,097,0002,014,0002,289,664
10May 18, 2024 18:0417,19341,785,89013,113,0002,017,0002,289,664
11May 18, 2024 17:5217,21836,411,24214,142,0001,010,0002,285,568
12May 18, 2024 17:5217,23433,441,79814,155,0001,011,0002,289,664
13May 18, 2024 18:0417,56880,893,93615,459,76402,285,568
14May 18, 2024 17:5217,88940,748,12415,742,00002,289,664
15May 18, 2024 17:5217,89092,720,72815,742,84302,281,472
16May 18, 2024 17:5217,94175,858,70015,788,33602,293,760
17May 18, 2024 17:5218,06430,193,44414,903,000993,0002,289,664
18May 18, 2024 17:5218,06843,263,09113,913,0001,987,0002,289,664
19May 18, 2024 18:0418,09338,521,63214,861,0001,061,0002,289,664
20May 18, 2024 18:0418,10940,125,60814,874,0001,062,0002,301,952
21May 18, 2024 18:0418,13247,594,20113,962,0001,994,0002,289,664
22May 18, 2024 17:5218,21387,548,95516,027,62002,281,472
23May 18, 2024 18:0418,26179,926,46616,069,54702,256,896
24May 18, 2024 18:0418,32467,089,27316,124,80002,281,472