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 21, 2021 13:10Yuriy LyfenkoYuriy LyfenkoScore: 73,016Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2021 13:1054,169107,636,70247,668,57702,301,952
2Jun 21, 2021 13:1054,308116,104,97947,791,02502,301,952
3Jun 21, 2021 13:1054,310123,447,43147,793,22202,306,048
4Jun 21, 2021 13:1072,91092,394,15557,144,0007,017,0002,322,432
5Jun 21, 2021 13:1072,93186,049,62755,154,0009,025,0002,330,624
6Jun 21, 2021 13:1072,96491,134,78154,176,00010,032,0002,334,720
7Jun 21, 2021 13:1073,01686,659,96155,219,0009,035,0002,355,200
8Jun 21, 2021 13:1073,05788,470,38857,259,0007,031,0002,465,792
9Jun 21, 2021 13:1073,09291,543,51155,276,0009,045,0002,265,088
10Jun 21, 2021 13:1073,18390,776,36358,364,0006,037,0002,420,736
11Jun 21, 2021 13:1073,29095,856,08155,426,0009,069,0002,297,856
12Jun 21, 2021 13:1073,31489,761,71956,452,0008,064,0002,400,256