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 08:28Ivan BessonovIvan BessonovScore: 24,403Success
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 08:2824,12744,100,30619,210,0002,022,0002,273,280
2May 17, 2024 08:2824,20145,684,63120,283,0001,014,0002,289,664
3May 17, 2024 08:2824,22539,218,24719,288,0002,030,0002,289,664
4May 17, 2024 08:2824,25543,847,53920,328,0001,016,0002,289,664
5May 17, 2024 08:2824,27848,548,25820,348,0001,017,0002,289,664
6May 17, 2024 08:2824,33246,400,29519,373,0002,039,0002,277,376
7May 17, 2024 08:2824,40356,064,37520,453,0001,022,0002,289,664
8May 17, 2024 08:2824,42648,292,74120,472,0001,023,0002,289,664
9May 17, 2024 08:2824,43348,947,19220,478,0001,023,0002,289,664
10May 17, 2024 08:2824,64285,483,55521,684,80902,256,896
11May 17, 2024 08:2824,659103,930,79721,700,13502,256,896
12May 17, 2024 08:2824,66394,775,79221,703,71202,252,800