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 15:03apuxbtapuxbtScore: 34,573Success
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 15:0334,39552,270,16130,268,00002,375,680
2Dec 1, 2022 15:0334,40853,832,35029,270,0001,009,0002,265,088
3Dec 1, 2022 15:0334,41956,001,08729,280,0001,009,0002,265,088
4Dec 1, 2022 15:0334,43355,868,02130,301,00002,265,088
5Dec 1, 2022 15:0334,54457,029,21930,399,00002,269,184
6Dec 1, 2022 15:0334,56053,788,92730,413,00002,387,968
7Dec 1, 2022 15:0334,57357,590,60730,424,00002,379,776
8Dec 1, 2022 15:0334,65753,336,25829,482,0001,016,0002,383,872
9Dec 1, 2022 15:0334,78061,772,23030,606,00002,265,088
10Dec 1, 2022 15:0334,90095,775,90130,712,01202,232,320
11Dec 1, 2022 15:0334,908105,964,18130,718,88402,236,416
12Dec 1, 2022 15:0335,15895,979,95330,939,11702,224,128