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 20, 2024 19:28Ivan BessonovIvan BessonovScore: 15,606Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 19:2815,51530,505,93012,603,0001,050,0002,347,008
2May 20, 2024 19:2815,54131,170,49913,676,00002,289,664
3May 20, 2024 19:2815,56629,925,73012,645,0001,053,0002,330,624
4May 20, 2024 19:2815,56732,058,73512,646,0001,053,0002,347,008
5May 20, 2024 19:2815,58333,333,31412,659,0001,054,0002,334,720
6May 20, 2024 19:2815,59734,444,28412,670,0001,055,0002,457,600
7May 20, 2024 19:2815,60633,684,60612,677,0001,056,0002,330,624
8May 20, 2024 19:2815,63030,767,15312,696,0001,058,0002,342,912
9May 20, 2024 19:2815,74564,080,36513,855,27602,195,456
10May 20, 2024 19:2815,831102,434,06313,931,04402,191,360
11May 20, 2024 19:2815,83779,733,17213,936,42502,256,896
12May 20, 2024 19:2816,34731,509,92212,330,0002,055,0002,338,816