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 14:11Ivan BessonovIvan BessonovScore: 19,958Success
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 14:1019,62742,737,77515,240,0002,032,0002,301,952
2May 18, 2024 14:1019,76534,504,36915,347,0002,046,0002,285,568
3May 18, 2024 14:1119,76933,069,07816,374,0001,023,0002,297,856
4May 18, 2024 14:1119,78243,500,99116,384,0001,024,0002,293,760
5May 18, 2024 14:1019,80833,513,79816,406,0001,025,0002,297,856
6May 18, 2024 14:1019,80840,088,78117,431,00002,301,952
7May 18, 2024 14:1119,81344,050,71816,410,0001,025,0002,289,664
8May 18, 2024 14:1019,82041,992,67516,416,0001,026,0002,289,664
9May 18, 2024 14:1019,83151,002,09915,512,0001,939,0002,306,048
10May 18, 2024 14:1119,84042,464,93516,432,0001,027,0002,289,664
11May 18, 2024 14:1019,91040,697,76716,491,0001,030,0002,289,664
12May 18, 2024 14:1119,91539,464,99917,525,00002,297,856
13May 18, 2024 14:1019,95839,045,81016,530,0001,033,0002,289,664
14May 18, 2024 14:1120,35850,300,87515,925,0001,990,0002,289,664
15May 18, 2024 14:1120,45944,712,55716,004,0002,000,0002,289,664
16May 18, 2024 14:1120,60742,150,57017,127,0001,007,0002,297,856
17May 18, 2024 14:1020,61640,403,23316,127,0002,015,0002,301,952
18May 18, 2024 14:1120,65643,991,03716,158,0002,019,0002,289,664
19May 18, 2024 14:1021,03886,417,28018,513,62602,293,760
20May 18, 2024 14:1021,07978,103,47218,549,19002,281,472
21May 18, 2024 14:1021,12681,955,32418,590,84302,277,376
22May 18, 2024 14:1121,42394,080,29418,852,42402,273,280
23May 18, 2024 14:1121,68086,980,59019,078,18902,281,472
24May 18, 2024 14:1121,72087,426,20719,113,90902,252,800