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 18, 2024 14:47Ivan BessonovIvan BessonovScore: 20,552Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 14:4719,74941,971,24416,357,0001,022,0002,289,664
2May 18, 2024 14:4719,75046,944,06916,358,0001,022,0002,289,664
3May 18, 2024 14:4719,79344,472,13216,394,0001,024,0002,412,544
4May 18, 2024 14:4719,80642,332,05316,404,0001,025,0002,306,048
5May 18, 2024 14:4719,83339,219,22816,427,0001,026,0002,301,952
6May 18, 2024 14:4720,51140,078,71116,045,0002,005,0002,289,664
7May 18, 2024 14:4720,55233,008,77016,077,0002,009,0002,289,664
8May 18, 2024 14:4720,55947,409,10816,082,0002,010,0002,289,664
9May 18, 2024 14:4720,56940,510,19516,090,0002,011,0002,392,064
10May 18, 2024 14:4722,06888,781,94819,419,71702,285,568
11May 18, 2024 14:4722,07683,564,72819,426,94702,289,664
12May 18, 2024 14:4722,09491,775,99519,442,37002,289,664