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:44Ivan BessonovIvan BessonovScore: 16,522Success
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:4416,43642,445,69513,431,0001,033,0002,334,720
2May 19, 2024 07:4416,44542,651,01013,439,0001,033,0002,334,720
3May 19, 2024 07:4416,46638,853,23013,455,0001,035,0002,338,816
4May 19, 2024 07:4416,48934,951,41013,474,0001,036,0002,289,664
5May 19, 2024 07:4416,49140,659,68313,476,0001,036,0002,289,664
6May 19, 2024 07:4416,51828,101,44013,498,0001,038,0002,441,216
7May 19, 2024 07:4416,52236,979,47513,501,0001,038,0002,289,664
8May 19, 2024 07:4416,74353,967,52514,733,43402,195,456
9May 19, 2024 07:4417,27638,706,33813,176,0002,027,0002,289,664
10May 19, 2024 07:4417,30269,097,68815,225,86202,318,336
11May 19, 2024 07:4417,45231,534,54313,311,0002,047,0002,289,664
12May 19, 2024 07:4417,50289,303,57015,401,90202,306,048