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 listOct 6, 2023 09:28Robert BurkeRobert BurkeScore: 19,361Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 09:2817,98371,302,54815,824,72002,260,992
2Oct 6, 2023 09:2818,00189,507,03515,840,96702,256,896
3Oct 6, 2023 09:2818,08597,043,10815,914,82402,256,896
4Oct 6, 2023 09:2819,27343,638,72414,965,0001,995,0002,281,472
5Oct 6, 2023 09:2819,31041,135,63614,994,0001,999,0002,281,472
6Oct 6, 2023 09:2819,34245,652,13715,019,0002,002,0002,281,472
7Oct 6, 2023 09:2819,36134,141,34015,034,0002,004,0002,416,640
8Oct 6, 2023 09:2819,37842,728,81715,047,0002,006,0002,281,472
9Oct 6, 2023 09:2819,38931,034,97715,055,0002,007,0002,281,472
10Oct 6, 2023 09:2819,39341,174,28515,059,0002,007,0002,412,544
11Oct 6, 2023 09:2819,41342,647,82415,074,0002,009,0002,281,472
12Oct 6, 2023 09:2819,43537,408,62915,091,0002,012,0002,510,848