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 8, 2024 11:10Ivan BessonovIvan BessonovScore: 48,335Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2024 11:1044,349114,589,87439,027,42902,256,896
2May 8, 2024 11:1144,43195,991,39439,098,89402,260,992
3May 8, 2024 11:1144,442108,359,13039,108,62202,265,088
4May 8, 2024 11:1044,525107,474,47439,181,59602,265,088
5May 8, 2024 11:1144,536106,655,03639,191,38502,252,800
6May 8, 2024 11:1044,557106,048,85039,209,78602,260,992
7May 8, 2024 11:1048,20164,641,01241,408,0001,009,0002,289,664
8May 8, 2024 11:1148,21566,709,21042,429,00002,289,664
9May 8, 2024 11:1148,27063,499,08741,467,0001,011,0002,277,376
10May 8, 2024 11:1148,28463,333,30541,479,0001,011,0002,273,280
11May 8, 2024 11:1148,31364,445,61641,503,0001,012,0002,281,472
12May 8, 2024 11:1148,33166,795,94841,519,0001,012,0002,289,664
13May 8, 2024 11:1148,33563,432,80040,557,0001,978,0002,289,664
14May 8, 2024 11:1048,33965,755,49641,526,0001,012,0002,269,184
15May 8, 2024 11:1048,35065,579,79041,535,0001,013,0002,273,280
16May 8, 2024 11:1048,37865,494,46741,560,0001,013,0002,289,664
17May 8, 2024 11:1048,40365,817,82641,581,0001,014,0002,269,184
18May 8, 2024 11:1148,43865,565,36441,611,0001,014,0002,289,664
19May 8, 2024 11:1048,47072,721,13541,639,0001,015,0002,289,664
20May 8, 2024 11:1048,48467,704,91741,651,0001,015,0002,269,184
21May 8, 2024 11:1048,49270,190,34642,673,00002,289,664
22May 8, 2024 11:1048,49369,735,86840,690,0001,984,0002,289,664
23May 8, 2024 11:1148,50771,178,11241,670,0001,016,0002,273,280
24May 8, 2024 11:1148,56673,023,79042,738,00002,269,184