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 listNov 30, 2022 11:55apuxbtapuxbtScore: 34,769Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 30, 2022 11:5534,58254,378,08829,418,0001,014,0002,265,088
2Nov 30, 2022 11:5534,58456,089,03530,434,00002,265,088
3Nov 30, 2022 11:5534,69259,447,67530,529,00002,379,776
4Nov 30, 2022 11:5534,70252,531,89229,521,0001,017,0002,383,872
5Nov 30, 2022 11:5534,75653,900,08930,585,00002,383,872
6Nov 30, 2022 11:5534,76651,565,24430,594,00002,396,160
7Nov 30, 2022 11:5534,76954,723,94330,597,00002,383,872
8Nov 30, 2022 11:5534,80054,536,18029,604,0001,020,0002,265,088
9Nov 30, 2022 11:5534,87788,578,41030,692,19902,236,416
10Nov 30, 2022 11:5534,90261,053,84630,714,00002,392,064
11Nov 30, 2022 11:5534,92286,412,07230,731,65102,232,320
12Nov 30, 2022 11:5534,939110,321,39930,746,32802,232,320