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:51apuxbtapuxbtScore: 34,727Success
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:5134,58356,785,73328,405,0002,028,0002,265,088
2Nov 29, 2022 07:5134,59558,825,38530,444,00002,383,872
3Nov 29, 2022 07:5134,60861,786,50730,455,00002,396,160
4Nov 29, 2022 07:5134,69454,153,85729,514,0001,017,0002,265,088
5Nov 29, 2022 07:5134,70058,422,41830,536,00002,265,088
6Nov 29, 2022 07:5134,72351,598,20329,538,0001,018,0002,383,872
7Nov 29, 2022 07:5134,72757,173,00129,542,0001,018,0002,387,968
8Nov 29, 2022 07:5134,75257,060,89930,582,00002,265,088
9Nov 29, 2022 07:5134,79951,157,72729,603,0001,020,0002,510,848
10Nov 29, 2022 07:5135,18594,910,43430,962,40702,240,512
11Nov 29, 2022 07:5135,20899,412,43930,982,69602,236,416
12Nov 29, 2022 07:5135,24287,739,30731,013,03302,240,512