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 12:58Ivan BessonovIvan BessonovScore: 48,419Success
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 12:5845,148108,113,05139,730,44302,265,088
2May 7, 2024 12:5845,152109,756,68939,734,15802,260,992
3May 7, 2024 12:5845,189105,589,20539,765,97902,252,800
4May 7, 2024 12:5848,26764,885,90441,464,0001,011,0002,265,088
5May 7, 2024 12:5848,34068,727,86942,539,00002,289,664
6May 7, 2024 12:5848,36766,663,05141,550,0001,013,0002,289,664
7May 7, 2024 12:5848,41964,647,66842,609,00002,273,280
8May 7, 2024 12:5848,44063,911,54441,613,0001,014,0002,265,088
9May 7, 2024 12:5848,45563,439,07241,625,0001,015,0002,273,280
10May 7, 2024 12:5848,45971,909,44241,629,0001,015,0002,289,664
11May 7, 2024 12:5848,46964,309,03042,653,00002,289,664
12May 7, 2024 12:5848,47368,585,02041,641,0001,015,0002,289,664