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 18, 2024 17:33Ivan BessonovIvan BessonovScore: 18,286Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 17:3317,27632,630,61113,176,0002,027,0002,289,664
2May 18, 2024 17:3317,28834,571,74714,199,0001,014,0002,289,664
3May 18, 2024 17:3317,35637,135,80113,237,0002,036,0002,289,664
4May 18, 2024 17:3317,39742,457,78113,268,0002,041,0002,289,664
5May 18, 2024 17:3317,40336,282,72813,273,0002,042,0002,408,448
6May 18, 2024 17:3318,26841,181,50914,067,0002,009,0002,289,664
7May 18, 2024 17:3318,28644,736,05415,087,0001,005,0002,289,664
8May 18, 2024 17:3318,39836,170,12714,167,0002,023,0002,289,664
9May 18, 2024 17:3318,40240,811,75914,170,0002,024,0002,306,048
10May 18, 2024 17:3319,07381,373,54116,784,46002,285,568
11May 18, 2024 17:3319,20896,888,84716,903,19902,293,760
12May 18, 2024 17:3319,24778,708,79816,937,79402,285,568