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 listFeb 15, 2024 13:04Robert BurkeRobert BurkeScore: 21,511Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2024 13:0417,07778,864,84715,027,82402,273,280
2Feb 15, 2024 13:0417,08793,565,34915,036,63302,256,896
3Feb 15, 2024 13:0417,16173,862,90915,101,99202,260,992
4Feb 15, 2024 13:0421,48640,147,68717,913,000995,0002,281,472
5Feb 15, 2024 13:0421,49749,005,81618,917,00002,281,472
6Feb 15, 2024 13:0421,50644,148,83516,933,0001,992,0002,281,472
7Feb 15, 2024 13:0421,51134,846,76416,938,0001,992,0002,281,472
8Feb 15, 2024 13:0421,51144,964,14216,938,0001,992,0002,416,640
9Feb 15, 2024 13:0421,51639,064,42116,941,0001,993,0002,281,472
10Feb 15, 2024 13:0421,56040,458,48516,976,0001,997,0002,281,472
11Feb 15, 2024 13:0421,56437,000,52416,979,0001,997,0002,514,944
12Feb 15, 2024 13:0421,56742,941,10716,982,0001,997,0002,412,544