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 17, 2024 09:12Ivan BessonovIvan BessonovScore: 24,074Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 09:1223,99947,379,01319,108,0002,011,0002,289,664
2May 17, 2024 09:1224,02443,435,14119,128,0002,013,0002,289,664
3May 17, 2024 09:1224,02650,115,39419,130,0002,013,0002,277,376
4May 17, 2024 09:1224,03342,693,77919,135,0002,014,0002,396,160
5May 17, 2024 09:1224,03542,694,88619,137,0002,014,0002,289,664
6May 17, 2024 09:1224,05049,347,07119,149,0002,015,0002,527,232
7May 17, 2024 09:1224,07451,636,13119,168,0002,017,0002,392,064
8May 17, 2024 09:1224,08641,898,05320,187,0001,009,0002,289,664
9May 17, 2024 09:1224,25944,322,24619,315,0002,033,0002,277,376
10May 17, 2024 09:1224,50675,996,99521,564,99202,256,896
11May 17, 2024 09:1224,54784,878,03421,601,56402,256,896
12May 17, 2024 09:1224,56894,761,28721,619,89402,265,088