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:48apuxbtapuxbtScore: 31,872Success
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:4831,65055,083,18926,858,000994,0002,383,872
2Dec 1, 2022 05:4831,70955,417,57426,908,000996,0002,383,872
3Dec 1, 2022 05:4831,76453,150,13826,954,000998,0002,265,088
4Dec 1, 2022 05:4831,78251,047,85026,970,000998,0002,265,088
5Dec 1, 2022 05:4831,82453,884,45026,005,0002,000,0002,387,968
6Dec 1, 2022 05:4831,83059,805,63726,010,0002,000,0002,375,680
7Dec 1, 2022 05:4831,87256,089,75127,046,0001,001,0002,379,776
8Dec 1, 2022 05:4831,93157,030,42227,096,0001,003,0002,387,968
9Dec 1, 2022 05:4831,98650,669,23628,148,00002,265,088
10Dec 1, 2022 05:4832,465110,948,99628,569,37802,228,224
11Dec 1, 2022 05:4832,49792,816,48828,597,19802,240,512
12Dec 1, 2022 05:4832,51797,393,02528,614,94902,224,128