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 7, 2024 11:09Ivan BessonovIvan BessonovScore: 48,523Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2024 11:0944,93598,868,92939,542,44102,252,800
2May 7, 2024 11:0945,258114,052,23939,826,88002,260,992
3May 7, 2024 11:0945,27098,092,00039,837,81802,256,896
4May 7, 2024 11:0948,24064,020,81341,441,0001,010,0002,273,280
5May 7, 2024 11:0948,26172,233,95941,459,0001,011,0002,289,664
6May 7, 2024 11:0948,33670,192,91141,524,0001,012,0002,289,664
7May 7, 2024 11:0948,52371,384,23742,700,00002,289,664
8May 7, 2024 11:0948,54169,812,14341,699,0001,017,0002,273,280
9May 7, 2024 11:0948,56968,452,56641,724,0001,017,0002,351,104
10May 7, 2024 11:0948,58066,051,13341,733,0001,017,0002,273,280
11May 7, 2024 11:0948,58871,095,64641,739,0001,018,0002,289,664
12May 7, 2024 11:0948,73573,119,31440,893,0001,994,0002,289,664