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 17, 2021 16:46Yuriy LyfenkoYuriy LyfenkoScore: 884,466Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 17, 2021 16:43879,407834,548,416773,877,73602,301,952
2Jun 17, 2021 16:44881,439845,697,350775,666,26102,179,072
3Jun 17, 2021 16:43881,476831,427,773775,698,58802,293,760
4Jun 17, 2021 16:46881,905830,432,371776,076,46102,301,952
5Jun 17, 2021 16:47881,964842,859,396776,128,48602,179,072
6Jun 17, 2021 16:44882,767834,712,127776,834,84502,301,952
7Jun 17, 2021 16:45883,217854,189,714777,231,22602,301,952
8Jun 17, 2021 16:45884,466848,977,054778,329,74702,179,072
9Jun 17, 2021 16:47884,490831,221,899778,351,46502,301,952
10Jun 17, 2021 16:47884,619835,237,789778,464,29402,179,072
11Jun 17, 2021 16:46884,973846,887,943778,776,05902,183,168
12Jun 17, 2021 16:45886,090845,581,350779,759,25102,183,168
13Jun 17, 2021 16:44886,366839,787,817780,002,47602,301,952
14Jun 17, 2021 16:46887,179856,016,778780,717,80202,297,856
15Jun 17, 2021 16:43891,250837,298,215784,299,72302,183,168