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 09:02Ivan BessonovIvan BessonovScore: 45,930Success
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 09:0245,82664,507,13039,319,0001,008,0002,289,664
2May 5, 2024 09:0245,85365,838,87738,334,0002,017,0002,289,664
3May 5, 2024 09:0245,86770,094,82839,354,0001,009,0002,273,280
4May 5, 2024 09:0245,88463,333,09340,378,00002,289,664
5May 5, 2024 09:0245,90566,674,98540,396,00002,277,376
6May 5, 2024 09:0245,90967,214,12839,390,0001,010,0002,289,664
7May 5, 2024 09:0245,93067,265,98539,408,0001,010,0002,273,280
8May 5, 2024 09:0245,94269,582,14640,429,00002,289,664
9May 5, 2024 09:0245,94966,640,40339,425,0001,010,0002,289,664
10May 5, 2024 09:0246,20997,094,52840,664,35102,252,800
11May 5, 2024 09:0246,421114,932,16440,850,75002,265,088
12May 5, 2024 09:0246,445106,445,74640,871,86402,256,896