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 10:51Ivan BessonovIvan BessonovScore: 44,620Success
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 10:5144,37570,642,92837,048,0002,002,0002,289,664
2May 5, 2024 10:5144,45166,337,84837,111,0002,006,0002,289,664
3May 5, 2024 10:5144,45661,559,74437,115,0002,006,0002,273,280
4May 5, 2024 10:5144,47662,221,66537,132,0002,007,0002,269,184
5May 5, 2024 10:5144,47762,530,48337,133,0002,007,0002,289,664
6May 5, 2024 10:5144,56460,601,03637,205,0002,011,0002,289,664
7May 5, 2024 10:5144,62066,380,66838,260,0001,006,0002,269,184
8May 5, 2024 10:5144,63962,465,37937,268,0002,014,0002,273,280
9May 5, 2024 10:5144,65961,468,88638,293,0001,007,0002,289,664
10May 5, 2024 10:5145,324101,441,07939,885,18502,252,800
11May 5, 2024 10:5145,417105,689,17139,966,90202,256,896
12May 5, 2024 10:5145,422110,238,26739,971,20202,252,800