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:16apuxbtapuxbtScore: 33,723Success
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:1632,901102,504,89028,952,87602,236,416
2Dec 1, 2022 06:1632,97196,731,35129,014,17202,273,280
3Dec 1, 2022 06:1632,974104,353,38929,016,86202,236,416
4Dec 1, 2022 06:1633,61551,753,12928,561,0001,020,0002,269,184
5Dec 1, 2022 06:1633,71851,578,01228,649,0001,023,0002,265,088
6Dec 1, 2022 06:1633,71958,557,87229,673,00002,379,776
7Dec 1, 2022 06:1633,72356,865,14328,653,0001,023,0002,265,088
8Dec 1, 2022 06:1633,76058,592,45228,685,0001,024,0002,387,968
9Dec 1, 2022 06:1633,77360,874,93128,696,0001,024,0002,383,872
10Dec 1, 2022 06:1633,78058,089,35328,701,0001,025,0002,383,872
11Dec 1, 2022 06:1633,95959,683,97028,888,000996,0002,392,064
12Dec 1, 2022 06:1634,09457,587,62328,003,0002,000,0002,265,088