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 12:16Robert BurkeRobert BurkeScore: 21,711Success
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 12:1617,17674,068,74515,114,70302,265,088
2Feb 15, 2024 12:1617,22683,331,15715,158,63202,252,800
3Feb 15, 2024 12:1617,23370,469,85115,164,73602,260,992
4Feb 15, 2024 12:1621,68039,059,84417,070,0002,008,0002,281,472
5Feb 15, 2024 12:1621,70546,755,68018,095,0001,005,0002,416,640
6Feb 15, 2024 12:1621,70740,423,92217,092,0002,010,0002,510,848
7Feb 15, 2024 12:1621,71138,941,36717,095,0002,011,0002,281,472
8Feb 15, 2024 12:1621,72642,981,47618,113,0001,006,0002,281,472
9Feb 15, 2024 12:1621,75351,131,20417,128,0002,015,0002,416,640
10Feb 15, 2024 12:1621,77840,804,97117,148,0002,017,0002,277,376
11Feb 15, 2024 12:1621,80844,414,28018,181,0001,010,0002,281,472
12Feb 15, 2024 12:1621,83543,432,39617,193,0002,022,0002,408,448