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 07:44Ivan BessonovIvan BessonovScore: 29,495Success
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 07:4429,20250,674,92624,671,0001,027,0002,289,664
2May 17, 2024 07:4429,30353,874,31424,756,0001,031,0002,289,664
3May 17, 2024 07:4429,40851,888,32523,889,0001,990,0002,289,664
4May 17, 2024 07:4429,41352,685,94025,883,00002,273,280
5May 17, 2024 07:4429,42756,278,17123,904,0001,992,0002,289,664
6May 17, 2024 07:4429,43951,035,73123,914,0001,992,0002,289,664
7May 17, 2024 07:4429,49554,749,88823,960,0001,996,0002,277,376
8May 17, 2024 07:4429,67650,348,08424,107,0002,008,0002,289,664
9May 17, 2024 07:4429,68248,655,06324,111,0002,009,0002,285,568
10May 17, 2024 07:4431,66899,501,10427,867,59802,383,872
11May 17, 2024 07:4431,68394,434,26627,881,36502,252,800
12May 17, 2024 07:4431,794106,916,62527,979,09202,392,064