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:43Yuriy LyfenkoYuriy LyfenkoScore: 44,298Success
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:4339,307116,150,76534,589,80702,240,512
2Jun 26, 2021 21:4339,33598,882,37734,614,81502,211,840
3Jun 26, 2021 21:4339,45799,500,48434,722,15602,224,128
4Jun 26, 2021 21:4344,03868,708,13137,734,0001,019,0002,269,184
5Jun 26, 2021 21:4344,20766,624,61637,905,000997,0002,269,184
6Jun 26, 2021 21:4344,24765,227,73937,939,000998,0002,383,872
7Jun 26, 2021 21:4344,29865,880,66336,983,0001,999,0002,269,184
8Jun 26, 2021 21:4344,31369,991,31536,996,0001,999,0002,367,488
9Jun 26, 2021 21:4344,37667,066,64937,049,0002,002,0002,269,184
10Jun 26, 2021 21:4344,39566,830,89337,065,0002,003,0002,269,184
11Jun 26, 2021 21:4344,41464,268,04737,080,0002,004,0002,269,184
12Jun 26, 2021 21:4344,42266,193,32337,087,0002,004,0002,375,680