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 05:53apuxbtapuxbtScore: 32,316Success
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 05:5331,61195,266,78927,817,95102,236,416
2Dec 1, 2022 05:5331,81797,278,68927,998,57302,232,320
3Dec 1, 2022 05:5331,82693,170,07328,007,30602,232,320
4Dec 1, 2022 05:5332,23857,103,31328,369,00002,265,088
5Dec 1, 2022 05:5332,28250,621,43527,394,0001,014,0002,265,088
6Dec 1, 2022 05:5332,31151,230,74927,419,0001,015,0002,502,656
7Dec 1, 2022 05:5332,31652,625,95628,438,00002,387,968
8Dec 1, 2022 05:5332,34952,098,79127,451,0001,016,0002,383,872
9Dec 1, 2022 05:5332,35655,069,86328,473,00002,265,088
10Dec 1, 2022 05:5332,36065,906,59827,460,0001,017,0002,383,872
11Dec 1, 2022 05:5332,37251,102,24328,487,00002,383,872
12Dec 1, 2022 05:5332,43256,876,80228,540,00002,383,872