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:13Robert BurkeRobert BurkeScore: 22,072Success
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:1318,29974,743,77016,103,00902,224,128
2Dec 28, 2022 05:1318,36778,537,10116,162,92902,232,320
3Dec 28, 2022 05:1318,51672,406,53316,293,94602,228,224
4Dec 28, 2022 05:1322,00745,308,61718,347,0001,019,0002,396,160
5Dec 28, 2022 05:1322,02040,926,56518,359,0001,019,0002,387,968
6Dec 28, 2022 05:1322,02344,038,15119,380,00002,387,968
7Dec 28, 2022 05:1322,07242,130,26418,401,0001,022,0002,387,968
8Dec 28, 2022 05:1322,07442,374,46419,425,00002,396,160
9Dec 28, 2022 05:1322,08644,369,93819,436,00002,387,968
10Dec 28, 2022 05:1322,12744,755,85319,472,00002,273,280
11Dec 28, 2022 05:1322,17635,014,48418,488,0001,027,0002,535,424
12Dec 28, 2022 05:1322,24842,152,99819,578,00002,494,464