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 27, 2021 17:01Yuriy LyfenkoYuriy LyfenkoScore: 36,643Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 17:1433,20680,798,07029,221,60502,220,032
2Jun 27, 2021 17:0133,22488,273,19129,237,07802,240,512
3Jun 27, 2021 17:0133,31396,273,38229,315,27002,211,840
4Jun 27, 2021 17:1433,31387,611,34029,315,05302,224,128
5Jun 27, 2021 17:1433,346112,673,28529,344,58802,220,032
6Jun 27, 2021 17:0133,35492,540,77829,351,90602,228,224
7Jun 27, 2021 17:0136,45559,611,43631,078,0001,002,0002,375,680
8Jun 27, 2021 17:1436,57062,080,06030,171,0002,011,0002,379,776
9Jun 27, 2021 17:0136,59857,079,92731,200,0001,006,0002,371,584
10Jun 27, 2021 17:1436,60260,054,93131,204,0001,006,0002,387,968
11Jun 27, 2021 17:0136,62463,653,09831,222,0001,007,0002,269,184
12Jun 27, 2021 17:1436,63457,974,48131,231,0001,007,0002,387,968
13Jun 27, 2021 17:0136,64359,624,87430,231,0002,015,0002,269,184
14Jun 27, 2021 17:1436,66554,942,38030,249,0002,016,0002,383,872
15Jun 27, 2021 17:1436,66753,175,05931,259,0001,008,0002,490,368
16Jun 27, 2021 17:0136,68356,963,45830,264,0002,017,0002,269,184
17Jun 27, 2021 17:1436,70755,575,61430,284,0002,018,0002,265,088
18Jun 27, 2021 17:0136,72759,795,40731,310,0001,010,0002,375,680
19Jun 27, 2021 17:0136,75653,305,23430,324,0002,021,0002,269,184
20Jun 27, 2021 17:0136,77358,017,74831,349,0001,011,0002,375,680
21Jun 27, 2021 17:1436,81061,190,68931,381,0001,012,0002,269,184
22Jun 27, 2021 17:1436,81056,247,23631,381,0001,012,0002,379,776
23Jun 27, 2021 17:1436,87057,143,86231,433,0001,013,0002,269,184
24Jun 27, 2021 17:0136,87055,648,61231,433,0001,013,0002,269,184