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 16, 2024 19:23Ivan BessonovIvan BessonovScore: 31,165Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 19:2327,96194,229,90924,605,32202,256,896
2May 16, 2024 19:2327,976101,047,45624,618,81102,265,088
3May 16, 2024 19:2327,99687,768,22024,636,49002,256,896
4May 16, 2024 19:2330,92855,316,14925,201,0002,016,0002,277,376
5May 16, 2024 19:2331,01150,165,07025,269,0002,021,0002,285,568
6May 16, 2024 19:2331,13657,009,05326,386,0001,014,0002,289,664
7May 16, 2024 19:2331,16553,899,97427,425,00002,281,472
8May 16, 2024 19:2331,20755,620,40226,445,0001,017,0002,265,088
9May 16, 2024 19:2331,22653,097,95026,462,0001,017,0002,289,664
10May 16, 2024 19:2331,25953,847,13527,508,00002,289,664
11May 16, 2024 19:2331,29752,705,12626,521,0001,020,0002,289,664
12May 16, 2024 19:2331,35349,039,63326,570,0001,021,0002,359,296