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 20, 2024 18:59Ivan BessonovIvan BessonovScore: 17,315Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 18:5917,17035,034,61413,096,0002,014,0002,342,912
2May 20, 2024 18:5917,22635,985,96513,138,0002,021,0002,289,664
3May 20, 2024 18:5917,24140,739,59013,149,0002,023,0002,351,104
4May 20, 2024 18:5917,25732,531,77113,162,0002,024,0002,338,816
5May 20, 2024 18:5917,29537,484,96613,191,0002,029,0002,289,664
6May 20, 2024 18:5917,29836,873,96613,193,0002,029,0002,289,664
7May 20, 2024 18:5917,31538,361,47314,222,0001,015,0002,338,816
8May 20, 2024 18:5917,34734,542,87113,230,0002,035,0002,289,664
9May 20, 2024 18:5917,72538,944,70714,559,0001,039,0002,441,216
10May 20, 2024 18:5918,47576,413,08016,258,23102,199,552
11May 20, 2024 18:5918,59589,484,59116,363,36402,326,528
12May 20, 2024 18:5918,74560,189,30816,495,35502,306,048