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 5, 2024 08:06Ivan BessonovIvan BessonovScore: 53,726Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 08:0653,39775,101,94244,990,0001,999,0002,289,664
2May 5, 2024 08:0653,50969,313,89246,087,0001,001,0002,273,280
3May 5, 2024 08:0653,53668,151,25445,108,0002,004,0002,269,184
4May 5, 2024 08:0653,598124,853,33947,166,40702,256,896
5May 5, 2024 08:0653,66370,143,12146,219,0001,004,0002,289,664
6May 5, 2024 08:0653,713108,393,09047,267,04002,256,896
7May 5, 2024 08:0653,72667,616,30345,268,0002,011,0002,519,040
8May 5, 2024 08:0653,81470,048,10846,349,0001,007,0002,273,280
9May 5, 2024 08:0653,822111,614,93147,363,02502,256,896
10May 5, 2024 08:0653,87083,151,71946,398,0001,008,0002,289,664
11May 5, 2024 08:0653,89269,759,97246,416,0001,009,0002,289,664
12May 5, 2024 08:0653,96669,302,74147,490,00002,269,184