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 5, 2024 08:02Ivan BessonovIvan BessonovScore: 55,274Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 08:0254,732106,720,81348,164,12502,248,704
2May 5, 2024 08:0254,945115,254,19448,351,91702,252,800
3May 5, 2024 08:0255,09372,928,77647,472,0001,010,0002,289,664
4May 5, 2024 08:0255,09970,318,39048,487,00002,277,376
5May 5, 2024 08:0255,15874,117,13047,528,0001,011,0002,273,280
6May 5, 2024 08:0255,171107,429,27348,550,75602,252,800
7May 5, 2024 08:0255,27476,973,17447,628,0001,013,0002,269,184
8May 5, 2024 08:0255,29170,484,08747,643,0001,013,0002,289,664
9May 5, 2024 08:0255,35079,294,49547,694,0001,014,0002,269,184
10May 5, 2024 08:0255,35574,475,15247,698,0001,014,0002,289,664
11May 5, 2024 08:0255,35975,467,49447,702,0001,014,0002,281,472
12May 5, 2024 08:0255,50677,548,71746,852,0001,993,0002,265,088