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 17, 2024 08:37Ivan BessonovIvan BessonovScore: 23,328Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 08:3723,12341,438,15619,331,0001,017,0002,277,376
2May 17, 2024 08:3723,13137,753,71319,338,0001,017,0002,289,664
3May 17, 2024 08:3723,17542,856,04219,375,0001,019,0002,289,664
4May 17, 2024 08:3723,19540,820,00719,392,0001,020,0002,289,664
5May 17, 2024 08:3723,28644,301,40319,468,0001,024,0002,277,376
6May 17, 2024 08:3723,30147,222,34019,480,0001,025,0002,289,664
7May 17, 2024 08:3723,32842,218,48919,503,0001,026,0002,396,160
8May 17, 2024 08:3723,35244,184,07520,550,00002,269,184
9May 17, 2024 08:3723,54744,127,96519,685,0001,036,0002,269,184
10May 17, 2024 08:3723,64586,035,42220,807,92002,252,800
11May 17, 2024 08:3723,68089,747,06620,838,42702,256,896
12May 17, 2024 08:3723,73092,380,40020,882,09002,260,992