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 2, 2023 18:54apuxbtapuxbtScore: 50,255Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 2, 2023 18:5449,87668,445,51341,896,0001,995,0002,347,008
2Oct 2, 2023 18:5449,91864,614,31741,932,0001,996,0002,342,912
3Oct 2, 2023 18:5449,93972,991,41041,949,0001,997,0002,347,008
4Oct 2, 2023 18:5450,00270,137,03142,002,0002,000,0002,347,008
5Oct 2, 2023 18:5450,07567,403,50343,065,0001,001,0002,514,944
6Oct 2, 2023 18:5450,20874,019,05843,179,0001,004,0002,347,008
7Oct 2, 2023 18:5450,25565,522,25641,209,0003,015,0002,326,528
8Oct 2, 2023 18:5450,35669,834,69543,306,0001,007,0002,269,184
9Oct 2, 2023 18:5450,35769,560,35342,300,0002,014,0002,347,008
10Oct 2, 2023 18:5451,953107,133,16845,718,79102,256,896
11Oct 2, 2023 18:5451,982103,749,62645,743,85502,256,896
12Oct 2, 2023 18:5452,015113,098,76945,773,02402,244,608