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:21apuxbtapuxbtScore: 41,345Success
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:2141,21959,317,76335,266,0001,007,0002,265,088
2Nov 30, 2022 15:2141,25362,161,09336,303,00002,265,088
3Nov 30, 2022 15:2141,25656,973,49936,305,00002,392,064
4Nov 30, 2022 15:2141,26961,610,27036,317,00002,265,088
5Nov 30, 2022 15:2141,27562,458,50034,305,0002,017,0002,265,088
6Nov 30, 2022 15:2141,34560,115,48136,384,00002,392,064
7Nov 30, 2022 15:2141,34565,303,18036,384,00002,265,088
8Nov 30, 2022 15:2141,36657,199,96135,391,0001,011,0002,265,088
9Nov 30, 2022 15:2141,49760,016,46135,503,0001,014,0002,387,968
10Nov 30, 2022 15:2141,561100,093,43236,573,50502,232,320
11Nov 30, 2022 15:2141,608114,093,53836,614,73402,240,512
12Nov 30, 2022 15:2141,64494,076,95036,646,50802,224,128