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 listJul 16, 2023 16:57Bernard TeoBernard TeoScore: 131,546Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 16, 2023 16:58131,086174,383,357115,355,68502,256,896
2Jul 16, 2023 16:58131,228173,173,530115,480,49102,256,896
3Jul 17, 2023 16:59131,237173,518,045115,488,52102,252,800
4Jul 16, 2023 16:55131,356178,931,937115,593,59202,256,896
5Jul 16, 2023 16:55131,361174,134,344115,597,59002,248,704
6Jul 17, 2023 16:59131,536183,127,026115,751,68402,252,800
7Jul 16, 2023 16:57131,546180,900,395115,760,27802,252,800
8Jul 16, 2023 16:58131,547180,392,891115,761,01002,269,184
9Jul 16, 2023 16:55131,604186,072,434115,811,88102,256,896
10Jul 17, 2023 16:59131,780169,725,979115,965,99702,244,608
11Jul 16, 2023 16:57131,795188,181,437115,979,20902,248,704
12Jul 16, 2023 16:57131,896195,013,484116,068,28302,260,992