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 15:20apuxbtapuxbtScore: 33,705Success
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 15:2033,40562,460,84027,369,0002,027,0002,383,872
2Nov 30, 2022 15:2033,44951,686,36828,420,0001,015,0002,265,088
3Nov 30, 2022 15:2033,50554,634,97628,468,0001,016,0002,265,088
4Nov 30, 2022 15:2033,62552,676,91729,590,00002,265,088
5Nov 30, 2022 15:2033,63853,949,01629,601,00002,265,088
6Nov 30, 2022 15:2033,70058,139,63528,634,0001,022,0002,265,088
7Nov 30, 2022 15:2033,70553,408,04929,660,00002,265,088
8Nov 30, 2022 15:2033,71059,192,18428,643,0001,022,0002,387,968
9Nov 30, 2022 15:2033,74854,446,10128,674,0001,024,0002,265,088
10Nov 30, 2022 15:2034,79895,493,53430,622,10702,228,224
11Nov 30, 2022 15:2034,809117,852,08030,632,12502,236,416
12Nov 30, 2022 15:2035,479131,856,60431,221,93602,240,512