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 07:51apuxbtapuxbtScore: 34,652Success
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 07:5134,41852,510,39528,269,0002,019,0002,383,872
2Nov 29, 2022 07:5134,51350,109,05230,371,00002,387,968
3Nov 29, 2022 07:5134,56451,269,60829,403,0001,013,0002,383,872
4Nov 29, 2022 07:5134,56756,760,79430,419,00002,265,088
5Nov 29, 2022 07:5134,59552,025,55229,430,0001,014,0002,392,064
6Nov 29, 2022 07:5134,62362,455,05630,468,00002,379,776
7Nov 29, 2022 07:5134,65252,852,50029,478,0001,016,0002,383,872
8Nov 29, 2022 07:5134,65560,618,42630,496,00002,265,088
9Nov 29, 2022 07:5134,68254,622,17929,503,0001,017,0002,265,088
10Nov 29, 2022 07:5135,39997,129,36031,151,10402,244,608
11Nov 29, 2022 07:5135,46498,664,54131,207,94002,236,416
12Nov 29, 2022 07:5135,54483,887,37131,278,96202,228,224