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:12apuxbtapuxbtScore: 31,778Success
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:1231,35884,630,06127,595,43002,228,224
2Dec 1, 2022 06:1231,40891,174,44227,638,61902,236,416
3Dec 1, 2022 06:1231,41193,831,57227,641,84002,240,512
4Dec 1, 2022 06:1231,70651,378,64226,905,000996,0002,502,656
5Dec 1, 2022 06:1231,71656,187,60025,917,0001,993,0002,387,968
6Dec 1, 2022 06:1231,77057,189,35126,960,000998,0002,502,656
7Dec 1, 2022 06:1231,77856,194,04226,967,000998,0002,383,872
8Dec 1, 2022 06:1231,81659,740,69925,999,0001,999,0002,383,872
9Dec 1, 2022 06:1231,84053,676,55627,019,0001,000,0002,383,872
10Dec 1, 2022 06:1231,84253,105,75627,021,0001,000,0002,387,968
11Dec 1, 2022 06:1231,86355,353,29126,037,0002,002,0002,387,968
12Dec 1, 2022 06:1231,89054,249,33226,059,0002,004,0002,265,088