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:32Ivan BessonovIvan BessonovScore: 47,866Success
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:3247,718106,004,73941,992,03102,265,088
2May 5, 2024 08:3247,72464,223,21939,998,0001,999,0002,392,064
3May 5, 2024 08:3247,82466,430,20441,083,0001,002,0002,269,184
4May 5, 2024 08:3247,83465,751,50540,090,0002,004,0002,273,280
5May 5, 2024 08:3247,84265,780,44340,097,0002,004,0002,289,664
6May 5, 2024 08:3247,85069,986,73240,103,0002,005,0002,273,280
7May 5, 2024 08:3247,86665,215,49040,117,0002,005,0002,289,664
8May 5, 2024 08:3247,87866,944,12441,130,0001,003,0002,265,088
9May 5, 2024 08:3247,89064,297,12140,137,0002,006,0002,289,664
10May 5, 2024 08:3247,914106,161,00642,164,17002,256,896
11May 5, 2024 08:3247,98264,787,13640,214,0002,010,0002,265,088
12May 5, 2024 08:3248,009108,145,82342,247,70702,265,088