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 listDec 1, 2022 05:14apuxbtapuxbtScore: 33,618Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 05:1433,46154,467,50428,431,0001,015,0002,387,968
2Dec 1, 2022 05:1433,47749,010,07729,460,00002,265,088
3Dec 1, 2022 05:1433,49749,746,29028,461,0001,016,0002,265,088
4Dec 1, 2022 05:1433,50351,508,36129,483,00002,265,088
5Dec 1, 2022 05:1433,52456,073,18029,501,00002,265,088
6Dec 1, 2022 05:1433,53553,554,76429,511,00002,387,968
7Dec 1, 2022 05:1433,61851,510,49528,564,0001,020,0002,265,088
8Dec 1, 2022 05:1433,63850,081,69829,601,00002,265,088
9Dec 1, 2022 05:1433,69152,047,51829,648,00002,265,088
10Dec 1, 2022 05:1434,95786,810,89230,762,41302,236,416
11Dec 1, 2022 05:1435,073101,072,90230,864,17402,236,416
12Dec 1, 2022 05:1435,11898,651,77330,903,83102,244,608