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:44Ivan BessonovIvan BessonovScore: 23,325Success
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:4423,21342,544,81619,406,0001,021,0002,269,184
2May 17, 2024 09:4423,24751,851,45419,435,0001,022,0002,289,664
3May 17, 2024 09:4423,25853,734,21819,444,0001,023,0002,289,664
4May 17, 2024 09:4423,27649,605,97720,483,00002,289,664
5May 17, 2024 09:4423,31144,566,12519,489,0001,025,0002,269,184
6May 17, 2024 09:4423,31637,205,10819,493,0001,025,0002,265,088
7May 17, 2024 09:4423,32543,089,52819,500,0001,026,0002,289,664
8May 17, 2024 09:4423,34341,673,99419,515,0001,027,0002,519,040
9May 17, 2024 09:4423,34542,891,06419,517,0001,027,0002,289,664
10May 17, 2024 09:4423,73396,825,75520,885,32602,256,896
11May 17, 2024 09:4423,74692,077,41820,896,22802,252,800
12May 17, 2024 09:4423,80392,179,47920,946,59202,256,896