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:50apuxbtapuxbtScore: 42,553Success
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:5041,649105,902,85736,651,03102,240,512
2Nov 30, 2022 11:5041,72698,950,15236,718,94702,240,512
3Nov 30, 2022 11:5041,824101,846,88336,805,01502,228,224
4Nov 30, 2022 11:5042,39066,828,80137,303,00002,265,088
5Nov 30, 2022 11:5042,46461,939,39836,359,0001,009,0002,265,088
6Nov 30, 2022 11:5042,53059,352,39136,415,0001,011,0002,387,968
7Nov 30, 2022 11:5042,55368,325,09937,447,00002,387,968
8Nov 30, 2022 11:5042,58458,471,62236,462,0001,012,0002,265,088
9Nov 30, 2022 11:5042,67865,203,75637,557,00002,387,968
10Nov 30, 2022 11:5042,69359,666,33636,555,0001,015,0002,506,752
11Nov 30, 2022 11:5042,76873,538,58937,636,00002,387,968
12Nov 30, 2022 11:5042,84969,416,99936,688,0001,019,0002,392,064