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 08:45Ivan BessonovIvan BessonovScore: 35,277Success
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 08:4531,96596,984,03128,129,37802,265,088
2May 13, 2024 08:4532,01094,281,89528,168,58702,260,992
3May 13, 2024 08:4532,111106,306,95728,257,66702,252,800
4May 13, 2024 08:4535,13558,205,51728,925,0001,994,0002,289,664
5May 13, 2024 08:4535,17857,240,22028,960,0001,997,0002,289,664
6May 13, 2024 08:4535,25357,626,73329,022,0002,001,0002,289,664
7May 13, 2024 08:4535,27752,501,89229,042,0002,002,0002,281,472
8May 13, 2024 08:4535,30353,702,82929,063,0002,004,0002,289,664
9May 13, 2024 08:4535,31358,412,49829,071,0002,004,0002,277,376
10May 13, 2024 08:4535,32851,224,93929,084,0002,005,0002,273,280
11May 13, 2024 08:4535,35755,668,67629,107,0002,007,0002,289,664
12May 13, 2024 08:4535,39355,227,48829,137,0002,009,0002,289,664