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 26, 2021 21:20Yuriy LyfenkoYuriy LyfenkoScore: 43,436Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2021 21:2041,315113,403,23236,357,11602,220,032
2Jun 26, 2021 21:2041,344103,382,48036,382,43402,215,936
3Jun 26, 2021 21:2041,403108,040,33736,435,01702,297,856
4Jun 26, 2021 21:2043,19467,654,65537,011,0001,000,0002,375,680
5Jun 26, 2021 21:2043,33165,986,36836,125,0002,006,0002,269,184
6Jun 26, 2021 21:2043,33663,149,08736,129,0002,007,0002,375,680
7Jun 26, 2021 21:2043,43668,498,31837,219,0001,005,0002,269,184
8Jun 26, 2021 21:2043,46667,441,55636,237,0002,013,0002,269,184
9Jun 26, 2021 21:2043,47470,381,56036,244,0002,013,0002,269,184
10Jun 26, 2021 21:2043,49261,223,04236,259,0002,014,0002,371,584
11Jun 26, 2021 21:2043,51862,963,53636,281,0002,015,0002,379,776
12Jun 26, 2021 21:2043,52466,324,74237,294,0001,007,0002,375,680