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:57apuxbtapuxbtScore: 34,407Success
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:5734,05363,626,63227,970,0001,997,0002,265,088
2Nov 30, 2022 11:5734,20254,446,14428,092,0002,006,0002,387,968
3Nov 30, 2022 11:5734,25360,484,65329,139,0001,004,0002,265,088
4Nov 30, 2022 11:5734,29856,946,92928,170,0002,012,0002,265,088
5Nov 30, 2022 11:5734,31556,459,77628,184,0002,013,0002,265,088
6Nov 30, 2022 11:5734,37457,786,37528,233,0002,016,0002,383,872
7Nov 30, 2022 11:5734,40757,270,49229,269,0001,009,0002,392,064
8Nov 30, 2022 11:5734,41954,725,65129,280,0001,009,0002,265,088
9Nov 30, 2022 11:5734,43458,699,03729,292,0001,010,0002,265,088
10Nov 30, 2022 11:5734,96289,669,07330,766,69702,244,608
11Nov 30, 2022 11:5734,97498,680,39430,776,84302,244,608
12Nov 30, 2022 11:5734,99995,284,65130,799,22002,236,416