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 11:53apuxbtapuxbtScore: 34,131Success
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 11:5334,00956,422,79829,928,00002,387,968
2Nov 30, 2022 11:5334,04755,843,28527,964,0001,997,0002,265,088
3Nov 30, 2022 11:5334,05154,590,21127,968,0001,997,0002,392,064
4Nov 30, 2022 11:5334,06658,616,27227,980,0001,998,0002,265,088
5Nov 30, 2022 11:5334,09959,469,75729,007,0001,000,0002,387,968
6Nov 30, 2022 11:5334,11062,066,77628,016,0002,001,0002,392,064
7Nov 30, 2022 11:5334,13157,573,30629,034,0001,001,0002,392,064
8Nov 30, 2022 11:5334,20159,403,27429,094,0001,003,0002,392,064
9Nov 30, 2022 11:5334,21158,313,89929,103,0001,003,0002,387,968
10Nov 30, 2022 11:5335,66693,089,87931,386,12602,224,128
11Nov 30, 2022 11:5335,75590,498,92531,464,10302,236,416
12Nov 30, 2022 11:5335,812102,701,26231,514,26702,236,416