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 13, 2024 09:25Ivan BessonovIvan BessonovScore: 35,463Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2024 09:2531,74389,645,16327,933,44302,252,800
2May 13, 2024 09:2531,87192,980,62428,046,51502,252,800
3May 13, 2024 09:2532,022105,969,76128,179,19402,256,896
4May 13, 2024 09:2535,35859,268,31130,112,0001,003,0002,289,664
5May 13, 2024 09:2535,45654,292,11029,188,0002,013,0002,289,664
6May 13, 2024 09:2535,46054,452,55029,192,0002,013,0002,289,664
7May 13, 2024 09:2535,46353,396,25129,194,0002,013,0002,289,664
8May 13, 2024 09:2535,47554,456,62629,204,0002,014,0002,281,472
9May 13, 2024 09:2535,47654,965,18430,212,0001,007,0002,289,664
10May 13, 2024 09:2535,47752,274,40829,206,0002,014,0002,281,472
11May 13, 2024 09:2535,54155,162,97430,268,0001,008,0002,273,280
12May 13, 2024 09:2535,57557,611,41629,287,0002,019,0002,289,664