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 19:48Ivan BessonovIvan BessonovScore: 19,011Success
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 19:4818,85831,205,36315,558,0001,037,0002,330,624
2May 18, 2024 19:4818,89432,411,99015,588,0001,039,0002,314,240
3May 18, 2024 19:4818,91138,288,77415,602,0001,040,0002,289,664
4May 18, 2024 19:4818,94345,555,91715,629,0001,041,0002,326,528
5May 18, 2024 19:4818,95047,949,55415,634,0001,042,0002,289,664
6May 18, 2024 19:4818,95246,399,72915,636,0001,042,0002,289,664
7May 18, 2024 19:4819,01140,567,22116,730,00002,289,664
8May 18, 2024 19:4819,40487,581,14117,075,54102,301,952
9May 18, 2024 19:4819,43695,420,49517,103,51402,183,168
10May 18, 2024 19:4819,62338,829,30315,237,0002,031,0002,289,664
11May 18, 2024 19:4819,68334,383,76815,284,0002,037,0002,289,664
12May 18, 2024 19:4819,79872,962,27317,422,21302,183,168