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:02Yuriy LyfenkoYuriy LyfenkoScore: 33,240Success
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:0233,082117,105,27429,111,89002,183,168
2Jun 26, 2021 21:0233,13669,967,50829,159,36102,191,360
3Jun 26, 2021 21:0233,17849,684,13926,177,0003,020,0002,326,528
4Jun 26, 2021 21:0233,18692,881,81029,204,03302,183,168
5Jun 26, 2021 21:0233,19094,133,48129,207,32502,191,360
6Jun 26, 2021 21:0233,191114,799,68029,208,33102,187,264
7Jun 26, 2021 21:0233,19587,113,47529,211,97002,199,552
8Jun 26, 2021 21:0233,24053,929,01727,234,0002,017,0002,334,720
9Jun 26, 2021 21:0233,25151,545,93827,243,0002,018,0002,334,720
10Jun 26, 2021 21:0233,29150,183,57626,266,0003,030,0002,527,232
11Jun 26, 2021 21:0233,42652,584,05128,401,0001,014,0002,334,720
12Jun 26, 2021 21:0233,44252,469,44928,415,0001,014,0002,519,040
13Jun 26, 2021 21:0233,47461,596,27028,442,0001,015,0002,519,040
14Jun 26, 2021 21:0233,49750,799,89528,461,0001,016,0002,523,136
15Jun 26, 2021 21:0233,59048,453,46827,521,0002,038,0002,531,328