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 listDec 1, 2022 06:37apuxbtapuxbtScore: 30,833Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 06:3730,70249,186,53825,017,0002,001,0002,265,088
2Dec 1, 2022 06:3730,70757,488,55126,022,0001,000,0002,265,088
3Dec 1, 2022 06:3730,70858,669,30026,023,0001,000,0002,265,088
4Dec 1, 2022 06:3730,71972,846,63727,033,08602,228,224
5Dec 1, 2022 06:3730,74559,019,35525,052,0002,004,0002,379,776
6Dec 1, 2022 06:3730,78853,673,88026,090,0001,003,0002,265,088
7Dec 1, 2022 06:3730,83392,181,49927,133,16302,240,512
8Dec 1, 2022 06:3730,84556,010,52425,134,0002,010,0002,383,872
9Dec 1, 2022 06:3730,86058,097,16326,152,0001,005,0002,383,872
10Dec 1, 2022 06:3730,90554,930,15125,182,0002,014,0002,383,872
11Dec 1, 2022 06:3730,92388,964,85227,211,99802,240,512
12Dec 1, 2022 06:3730,93555,742,10525,207,0002,016,0002,265,088