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:12apuxbtapuxbtScore: 33,749Success
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:1232,86784,193,09928,922,61902,232,320
2Dec 1, 2022 06:1232,95796,684,85429,002,11602,228,224
3Dec 1, 2022 06:1233,01394,568,32829,051,83802,228,224
4Dec 1, 2022 06:1233,69455,993,64628,629,0001,022,0002,379,776
5Dec 1, 2022 06:1233,72654,627,10128,656,0001,023,0002,392,064
6Dec 1, 2022 06:1233,74557,837,11228,672,0001,024,0002,392,064
7Dec 1, 2022 06:1233,74961,990,60829,699,00002,523,136
8Dec 1, 2022 06:1233,77055,790,89229,718,00002,265,088
9Dec 1, 2022 06:1233,83053,274,48028,744,0001,026,0002,387,968
10Dec 1, 2022 06:1233,84857,485,32229,786,00002,387,968
11Dec 1, 2022 06:1233,85858,057,34729,795,00002,265,088
12Dec 1, 2022 06:1233,96956,121,33127,901,0001,992,0002,387,968