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 18:05Ivan BessonovIvan BessonovScore: 17,180Success
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 18:0517,14041,105,38513,072,0002,011,0002,306,048
2May 18, 2024 18:0517,14435,222,11314,082,0001,005,0002,293,760
3May 18, 2024 18:0517,16134,538,87713,089,0002,013,0002,289,664
4May 18, 2024 18:0517,16633,495,80813,092,0002,014,0002,285,568
5May 18, 2024 18:0517,16744,086,63814,100,0001,007,0002,289,664
6May 18, 2024 18:0517,17639,571,02513,100,0002,015,0002,289,664
7May 18, 2024 18:0517,18039,822,04013,103,0002,015,0002,297,856
8May 18, 2024 18:0517,21330,797,13813,128,0002,019,0002,289,664
9May 18, 2024 18:0517,35599,524,46815,272,11202,281,472
10May 18, 2024 18:0517,357100,569,14915,274,49202,289,664
11May 18, 2024 18:0517,38679,541,43215,299,52302,285,568
12May 18, 2024 18:0517,84530,059,44015,704,00002,306,048