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 19, 2024 07:00Ivan BessonovIvan BessonovScore: 16,566Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 07:0016,40931,333,27413,409,0001,031,0002,330,624
2May 19, 2024 07:0016,43129,463,21613,427,0001,032,0002,342,912
3May 19, 2024 07:0016,46037,849,33013,451,0001,034,0002,289,664
4May 19, 2024 07:0016,48930,501,61814,510,00002,289,664
5May 19, 2024 07:0016,53930,239,51713,515,0001,039,0002,285,568
6May 19, 2024 07:0016,55329,500,61313,527,0001,040,0002,289,664
7May 19, 2024 07:0016,56632,221,01213,537,0001,041,0002,289,664
8May 19, 2024 07:0017,12837,181,75313,064,0002,009,0002,289,664
9May 19, 2024 07:0017,24731,030,61014,166,0001,011,0002,289,664
10May 19, 2024 07:0017,29781,160,79315,221,28102,183,168
11May 19, 2024 07:0017,32288,818,51615,243,46102,187,264
12May 19, 2024 07:0017,42090,014,23615,329,83502,306,048