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 15:13apuxbtapuxbtScore: 39,892Success
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 15:1339,73862,866,75933,970,000999,0002,265,088
2Nov 30, 2022 15:1339,78859,594,05134,013,0001,000,0002,265,088
3Nov 30, 2022 15:1339,81062,697,05334,033,0001,000,0002,383,872
4Nov 30, 2022 15:1339,82466,799,71234,044,0001,001,0002,265,088
5Nov 30, 2022 15:1339,82661,916,12934,046,0001,001,0002,392,064
6Nov 30, 2022 15:1339,86667,024,18233,078,0002,004,0002,265,088
7Nov 30, 2022 15:1339,89265,977,90234,102,0001,003,0002,265,088
8Nov 30, 2022 15:1339,98166,011,39333,173,0002,010,0002,392,064
9Nov 30, 2022 15:1340,00361,229,18734,198,0001,005,0002,379,776
10Nov 30, 2022 15:1340,20396,287,10935,378,31602,232,320
11Nov 30, 2022 15:1340,288103,052,25635,453,58302,236,416
12Nov 30, 2022 15:1340,345115,631,63135,503,52702,244,608