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:41apuxbtapuxbtScore: 31,978Success
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:4131,85952,216,83626,034,0002,002,0002,265,088
2Dec 1, 2022 05:4131,86852,951,60627,043,0001,001,0002,379,776
3Dec 1, 2022 05:4131,89054,030,08227,061,0001,002,0002,387,968
4Dec 1, 2022 05:4131,89054,266,45727,061,0001,002,0002,383,872
5Dec 1, 2022 05:4131,93254,005,59527,097,0001,003,0002,265,088
6Dec 1, 2022 05:4131,94053,621,31127,104,0001,003,0002,265,088
7Dec 1, 2022 05:4131,97856,848,28326,131,0002,010,0002,379,776
8Dec 1, 2022 05:4131,98654,028,79727,143,0001,005,0002,265,088
9Dec 1, 2022 05:4132,09151,177,24027,232,0001,008,0002,383,872
10Dec 1, 2022 05:4132,49686,784,53528,596,26202,232,320
11Dec 1, 2022 05:4132,52597,064,52028,621,84302,228,224
12Dec 1, 2022 05:4132,77288,530,12928,839,31802,236,416