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 20:14Ivan BessonovIvan BessonovScore: 18,236Success
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 20:1417,22736,914,48213,139,0002,021,0002,289,664
2May 18, 2024 20:1417,31840,312,54413,208,0002,032,0002,289,664
3May 18, 2024 20:1417,32037,647,62014,226,0001,016,0002,330,624
4May 18, 2024 20:1417,34234,932,71513,227,0002,034,0002,289,664
5May 18, 2024 20:1418,07035,606,65814,909,000993,0002,289,664
6May 18, 2024 20:1418,14044,189,86614,966,000997,0002,326,528
7May 18, 2024 20:1418,23632,399,10714,042,0002,006,0002,326,528
8May 18, 2024 20:1418,24740,617,11014,050,0002,007,0002,326,528
9May 18, 2024 20:1418,25772,046,11516,066,15102,306,048
10May 18, 2024 20:1418,29435,052,17714,087,0002,012,0002,289,664
11May 18, 2024 20:1418,33575,866,75116,135,20002,179,072
12May 18, 2024 20:1418,37656,797,52016,170,55902,301,952