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:49apuxbtapuxbtScore: 45,002Success
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:4943,693103,413,03638,450,02602,228,224
2Nov 30, 2022 11:4943,73598,933,49238,486,88902,236,416
3Nov 30, 2022 11:4943,755115,125,14438,504,51802,236,416
4Nov 30, 2022 11:4944,90960,310,44538,507,0001,013,0002,387,968
5Nov 30, 2022 11:4944,93572,562,03138,530,0001,013,0002,383,872
6Nov 30, 2022 11:4944,98663,490,24139,588,00002,265,088
7Nov 30, 2022 11:4945,00259,152,18439,602,00002,506,752
8Nov 30, 2022 11:4945,02567,775,18839,622,00002,265,088
9Nov 30, 2022 11:4945,09471,102,18638,666,0001,017,0002,265,088
10Nov 30, 2022 11:4945,15068,719,64137,695,0002,037,0002,387,968
11Nov 30, 2022 11:4945,33468,227,38239,894,00002,498,560
12Nov 30, 2022 11:4945,33669,332,60138,899,000997,0002,265,088