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 05:33apuxbtapuxbtScore: 36,361Success
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 05:3336,11562,460,51929,731,0002,050,0002,273,280
2Nov 29, 2022 05:3336,20760,306,58428,875,0002,987,0002,310,144
3Nov 29, 2022 05:3336,24161,149,84229,899,0001,993,0002,273,280
4Nov 29, 2022 05:3336,24256,822,18329,900,0001,993,0002,310,144
5Nov 29, 2022 05:3336,24762,572,53928,907,0002,990,0002,273,280
6Nov 29, 2022 05:3336,28859,581,07429,873,0002,060,0002,273,280
7Nov 29, 2022 05:3336,36155,581,34328,999,0002,999,0002,273,280
8Nov 29, 2022 05:3336,41654,438,20629,042,0003,004,0002,310,144
9Nov 29, 2022 05:3336,52255,866,94131,135,0001,004,0002,273,280
10Nov 29, 2022 05:3337,52893,217,02533,024,62402,297,856
11Nov 29, 2022 05:3337,551100,819,39333,044,46902,297,856
12Nov 29, 2022 05:3337,751102,530,56933,221,00502,260,992