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:38apuxbtapuxbtScore: 30,440Success
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:3830,33054,383,35926,690,00002,383,872
2Dec 1, 2022 06:3830,33251,596,60425,666,0001,026,0002,506,752
3Dec 1, 2022 06:3830,35551,234,26625,685,0001,027,0002,387,968
4Dec 1, 2022 06:3830,36756,564,97526,723,00002,265,088
5Dec 1, 2022 06:3830,38454,557,25325,710,0001,028,0002,383,872
6Dec 1, 2022 06:3830,43353,760,36325,751,0001,030,0002,383,872
7Dec 1, 2022 06:3830,44052,740,59225,757,0001,030,0002,379,776
8Dec 1, 2022 06:3830,55054,923,25124,893,0001,991,0002,383,872
9Dec 1, 2022 06:3830,55953,030,40425,896,000996,0002,387,968
10Dec 1, 2022 06:3830,76583,731,89127,072,91102,228,224
11Dec 1, 2022 06:3830,82689,332,75727,126,45002,236,416
12Dec 1, 2022 06:3830,88298,251,41827,175,84202,240,512