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 19, 2024 07:02Ivan BessonovIvan BessonovScore: 17,134Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 07:0216,40029,469,20013,402,0001,030,0002,289,664
2May 19, 2024 07:0216,44839,056,04913,441,0001,033,0002,334,720
3May 19, 2024 07:0216,46445,609,44813,454,0001,034,0002,289,664
4May 19, 2024 07:0216,58140,991,76713,549,0001,042,0002,289,664
5May 19, 2024 07:0216,83562,403,18814,814,75602,183,168
6May 19, 2024 07:0217,05530,560,48513,007,0002,001,0002,334,720
7May 19, 2024 07:0217,13447,099,81313,068,0002,010,0002,289,664
8May 19, 2024 07:0217,15632,186,35313,084,0002,013,0002,334,720
9May 19, 2024 07:0217,20131,929,65713,119,0002,018,0002,404,352
10May 19, 2024 07:0217,20231,196,46313,120,0002,018,0002,289,664
11May 19, 2024 07:0217,37983,279,66415,293,95902,191,360
12May 19, 2024 07:0217,44282,001,01615,349,12402,195,456