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 29, 2022 07:43apuxbtapuxbtScore: 34,592Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 29, 2022 07:4334,34166,064,70129,213,0001,007,0002,265,088
2Nov 29, 2022 07:4334,46452,434,52530,328,00002,265,088
3Nov 29, 2022 07:4334,53157,037,34429,375,0001,012,0002,265,088
4Nov 29, 2022 07:4334,54353,078,31330,398,00002,265,088
5Nov 29, 2022 07:4334,55550,813,85330,408,00002,265,088
6Nov 29, 2022 07:4334,55758,042,14328,383,0002,027,0002,387,968
7Nov 29, 2022 07:4334,59252,795,56529,427,0001,014,0002,371,584
8Nov 29, 2022 07:4334,63654,410,75830,480,00002,265,088
9Nov 29, 2022 07:4334,65650,350,72829,481,0001,016,0002,383,872
10Nov 29, 2022 07:4336,25199,252,41931,900,62002,240,512
11Nov 29, 2022 07:4336,28892,895,51931,933,51302,228,224
12Nov 29, 2022 07:4336,32795,573,44431,967,43002,228,224