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:41apuxbtapuxbtScore: 31,332Success
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:4130,76284,878,39127,070,66102,240,512
2Dec 1, 2022 06:4130,77891,271,74427,084,63102,228,224
3Dec 1, 2022 06:4130,88199,921,29727,175,22102,240,512
4Dec 1, 2022 06:4131,22553,161,93426,461,0001,017,0002,383,872
5Dec 1, 2022 06:4131,31053,605,35527,553,00002,383,872
6Dec 1, 2022 06:4131,31151,991,21426,534,0001,020,0002,265,088
7Dec 1, 2022 06:4131,33253,862,29627,572,00002,387,968
8Dec 1, 2022 06:4131,35547,811,37726,571,0001,021,0002,383,872
9Dec 1, 2022 06:4131,38051,729,51227,614,00002,387,968
10Dec 1, 2022 06:4131,38553,939,36326,597,0001,022,0002,387,968
11Dec 1, 2022 06:4131,39549,342,17027,628,00002,486,272
12Dec 1, 2022 06:4131,45852,974,68727,683,00002,387,968