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 4, 2023 12:19apuxbtapuxbtScore: 28,696Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 4, 2023 12:1928,37451,230,63921,973,0002,996,0002,293,760
2Oct 4, 2023 12:1928,44793,827,25325,033,10902,301,952
3Oct 4, 2023 12:1928,51347,986,13421,077,0004,014,0002,322,432
4Oct 4, 2023 12:1928,54147,719,04921,098,0004,018,0002,326,528
5Oct 4, 2023 12:1928,61750,039,72324,176,0001,007,0002,318,336
6Oct 4, 2023 12:1928,67649,375,73523,217,0002,018,0002,293,760
7Oct 4, 2023 12:1928,69682,284,98525,252,15702,301,952
8Oct 4, 2023 12:1928,77348,989,68022,282,0003,038,0002,293,760
9Oct 4, 2023 12:1928,88346,760,13722,367,0003,050,0002,306,048
10Oct 4, 2023 12:1928,88852,674,64222,371,0003,050,0002,326,528
11Oct 4, 2023 12:1929,031101,344,30225,546,93602,297,856
12Oct 4, 2023 12:1929,05247,318,65424,544,0001,022,0002,326,528