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:41Yuriy LyfenkoYuriy LyfenkoScore: 44,241Success
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:4139,29998,972,82934,583,43202,211,840
2Jun 26, 2021 21:4139,34189,510,98134,619,90102,215,936
3Jun 26, 2021 21:4139,362124,088,11634,638,66202,215,936
4Jun 26, 2021 21:4144,15765,358,48237,862,000996,0002,375,680
5Jun 26, 2021 21:4144,19568,817,57537,895,000997,0002,269,184
6Jun 26, 2021 21:4144,20268,560,31637,901,000997,0002,367,488
7Jun 26, 2021 21:4144,24165,162,95136,936,0001,996,0002,269,184
8Jun 26, 2021 21:4144,24569,541,38237,938,000998,0002,371,584
9Jun 26, 2021 21:4144,27765,956,62237,965,000999,0002,269,184
10Jun 26, 2021 21:4144,30364,405,03536,988,0001,999,0002,375,680
11Jun 26, 2021 21:4144,37068,016,90038,045,0001,001,0002,367,488
12Jun 26, 2021 21:4144,55766,284,76038,205,0001,005,0002,371,584