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 listJun 27, 2021 16:58Yuriy LyfenkoYuriy LyfenkoScore: 36,749Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 16:5833,17191,128,54229,190,66202,215,936
2Jun 27, 2021 16:5833,17593,889,97029,194,27002,215,936
3Jun 27, 2021 16:5833,19691,151,61929,212,32802,215,936
4Jun 27, 2021 16:5836,66061,839,31330,245,0002,016,0002,269,184
5Jun 27, 2021 16:5836,66857,727,57931,260,0001,008,0002,375,680
6Jun 27, 2021 16:5836,70556,028,39931,291,0001,009,0002,269,184
7Jun 27, 2021 16:5836,74962,292,84931,329,0001,010,0002,269,184
8Jun 27, 2021 16:5836,75555,238,21832,344,00002,383,872
9Jun 27, 2021 16:5836,76655,249,44031,343,0001,011,0002,379,776
10Jun 27, 2021 16:5836,84752,649,05431,412,0001,013,0002,371,584
11Jun 27, 2021 16:5836,85260,035,17931,417,0001,013,0002,269,184
12Jun 27, 2021 16:5836,89057,781,29931,449,0001,014,0002,269,184