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 08:27apuxbtapuxbtScore: 34,838Success
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 08:2734,62456,846,70629,454,0001,015,0002,383,872
2Nov 29, 2022 08:2734,65150,458,91530,493,00002,383,872
3Nov 29, 2022 08:2734,67455,334,12729,496,0001,017,0002,265,088
4Nov 29, 2022 08:2734,73958,507,35129,551,0001,019,0002,265,088
5Nov 29, 2022 08:2734,76053,084,48329,570,0001,019,0002,396,160
6Nov 29, 2022 08:2734,78051,474,03529,586,0001,020,0002,265,088
7Nov 29, 2022 08:2734,83861,585,05730,657,00002,265,088
8Nov 29, 2022 08:2734,88957,546,67530,702,00002,387,968
9Nov 29, 2022 08:2734,92662,194,39130,735,00002,265,088
10Nov 29, 2022 08:2735,34893,664,80231,106,58702,236,416
11Nov 29, 2022 08:2735,44788,344,12731,193,39202,240,512
12Nov 29, 2022 08:2735,55483,112,07631,287,90002,228,224