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 05:55apuxbtapuxbtScore: 32,452Success
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 05:5531,66190,156,20227,861,76502,232,320
2Dec 1, 2022 05:5531,795102,559,84127,979,87902,228,224
3Dec 1, 2022 05:5531,81398,235,48427,995,41402,236,416
4Dec 1, 2022 05:5532,36652,013,69128,482,00002,387,968
5Dec 1, 2022 05:5532,42453,875,60828,533,00002,383,872
6Dec 1, 2022 05:5532,43055,056,69227,519,0001,019,0002,383,872
7Dec 1, 2022 05:5532,45251,307,43628,558,00002,502,656
8Dec 1, 2022 05:5532,45950,941,01427,544,0001,020,0002,265,088
9Dec 1, 2022 05:5532,49450,597,49327,574,0001,021,0002,383,872
10Dec 1, 2022 05:5532,50751,195,45127,585,0001,021,0002,265,088
11Dec 1, 2022 05:5532,60957,484,57828,696,00002,379,776
12Dec 1, 2022 05:5532,62057,131,15027,681,0001,025,0002,383,872