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 11:19Ivan BessonovIvan BessonovScore: 20,015Success
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 11:1919,87243,175,86716,459,0001,028,0002,310,144
2May 18, 2024 11:1919,91332,984,68316,493,0001,030,0002,289,664
3May 18, 2024 11:1919,94438,561,25716,519,0001,032,0002,310,144
4May 18, 2024 11:1919,96441,039,49216,535,0001,033,0002,289,664
5May 18, 2024 11:1919,97539,756,13016,544,0001,034,0002,289,664
6May 18, 2024 11:1919,99540,071,47017,596,00002,306,048
7May 18, 2024 11:1920,01540,634,38416,577,0001,036,0002,289,664
8May 18, 2024 11:1920,95641,490,61217,417,0001,024,0002,289,664
9May 18, 2024 11:1921,01040,513,75817,462,0001,027,0002,289,664
10May 18, 2024 11:1921,59985,260,80419,007,20502,281,472
11May 18, 2024 11:1921,62487,612,43819,029,04202,289,664
12May 18, 2024 11:1921,63680,261,01319,039,99602,293,760