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 06:05apuxbtapuxbtScore: 32,498Success
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 06:0531,793105,864,83727,977,97102,236,416
2Dec 1, 2022 06:0531,90788,429,13228,078,58202,232,320
3Dec 1, 2022 06:0531,98892,382,71928,149,34402,236,416
4Dec 1, 2022 06:0532,37654,889,45927,474,0001,017,0002,392,064
5Dec 1, 2022 06:0532,42851,959,01327,518,0001,019,0002,383,872
6Dec 1, 2022 06:0532,49454,197,98528,595,00002,265,088
7Dec 1, 2022 06:0532,49850,478,90428,598,00002,502,656
8Dec 1, 2022 06:0532,50749,880,93027,585,0001,021,0002,379,776
9Dec 1, 2022 06:0532,57250,247,23728,663,00002,392,064
10Dec 1, 2022 06:0532,57258,993,49527,640,0001,023,0002,392,064
11Dec 1, 2022 06:0532,57755,293,80827,645,0001,023,0002,265,088
12Dec 1, 2022 06:0532,58358,133,65027,649,0001,024,0002,265,088