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 20:23Yuriy LyfenkoYuriy LyfenkoScore: 37,824Success
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 20:2337,68391,583,17633,161,38802,187,264
2Jun 26, 2021 20:2337,69599,916,36233,171,72402,195,456
3Jun 26, 2021 20:2337,743101,584,59733,214,20102,187,264
4Jun 26, 2021 20:2337,79855,388,36131,247,0002,015,0002,326,528
5Jun 26, 2021 20:2337,80259,939,22631,250,0002,016,0002,531,328
6Jun 26, 2021 20:2337,81162,394,88931,258,0002,016,0002,531,328
7Jun 26, 2021 20:2337,82454,702,25031,268,0002,017,0002,531,328
8Jun 26, 2021 20:2337,91059,229,51732,351,0001,010,0002,334,720
9Jun 26, 2021 20:2338,04860,924,51831,453,0002,029,0002,334,720
10Jun 26, 2021 20:2338,12859,453,19932,537,0001,016,0002,531,328
11Jun 26, 2021 20:2338,17753,413,78332,578,0001,018,0002,531,328
12Jun 26, 2021 20:2338,18655,232,10631,568,0002,036,0002,334,720