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:44Ivan BessonovIvan BessonovScore: 15,797Success
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:4415,48837,969,79712,581,0001,048,0002,342,912
2May 20, 2024 19:4415,49333,463,47113,634,00002,342,912
3May 20, 2024 19:4415,50232,784,43512,593,0001,049,0002,289,664
4May 20, 2024 19:4415,50535,860,60312,595,0001,049,0002,289,664
5May 20, 2024 19:4415,50530,309,34312,595,0001,049,0002,342,912
6May 20, 2024 19:4415,52740,434,03112,613,0001,051,0002,289,664
7May 20, 2024 19:4415,79776,068,24213,901,78502,203,648
8May 20, 2024 19:4415,81262,397,53613,914,66302,187,264
9May 20, 2024 19:4415,88092,640,82213,974,06402,199,552
10May 20, 2024 19:4416,20038,194,05412,220,0002,036,0002,338,816
11May 20, 2024 19:4416,24546,455,17212,254,0002,042,0002,334,720
12May 20, 2024 19:4416,32330,214,28612,312,0002,052,0002,355,200