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 28, 2022 05:17Robert BurkeRobert BurkeScore: 22,168Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 05:1718,33183,090,24716,131,47502,211,840
2Dec 28, 2022 05:1718,40268,276,89616,194,14402,207,744
3Dec 28, 2022 05:1718,43278,086,93616,219,80402,211,840
4Dec 28, 2022 05:1722,07540,069,49618,404,0001,022,0002,469,888
5Dec 28, 2022 05:1722,11534,781,63219,461,00002,367,488
6Dec 28, 2022 05:1722,14140,541,43019,484,00002,281,472
7Dec 28, 2022 05:1722,16844,183,40819,508,00002,367,488
8Dec 28, 2022 05:1722,17840,945,14418,490,0001,027,0002,375,680
9Dec 28, 2022 05:1722,18037,080,70317,464,0002,054,0002,375,680
10Dec 28, 2022 05:1722,18442,970,78919,522,00002,281,472
11Dec 28, 2022 05:1722,19145,568,11518,501,0001,027,0002,281,472
12Dec 28, 2022 05:1722,25237,197,66717,521,0002,061,0002,375,680