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:45Robert BurkeRobert BurkeScore: 21,661Success
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:4517,15465,801,49315,095,13302,260,992
2Feb 15, 2024 12:4517,16579,309,05815,105,31802,260,992
3Feb 15, 2024 12:4517,25577,911,71515,184,25302,265,088
4Feb 15, 2024 12:4521,58145,284,46317,992,000999,0002,281,472
5Feb 15, 2024 12:4521,63240,015,19217,033,0002,003,0002,416,640
6Feb 15, 2024 12:4521,64542,743,38618,046,0001,002,0002,408,448
7Feb 15, 2024 12:4521,66144,364,15817,056,0002,006,0002,408,448
8Feb 15, 2024 12:4521,67842,538,27817,069,0002,008,0002,400,256
9Feb 15, 2024 12:4521,68343,802,78017,073,0002,008,0002,510,848
10Feb 15, 2024 12:4521,68535,626,08017,075,0002,008,0002,281,472
11Feb 15, 2024 12:4521,71537,932,46917,098,0002,011,0002,416,640
12Feb 15, 2024 12:4521,77444,399,67817,144,0002,017,0002,281,472