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 16:22Yuriy LyfenkoYuriy LyfenkoScore: 36,727Success
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 16:2433,19795,827,09729,213,53002,215,936
2Jun 27, 2021 16:2433,204109,076,49229,219,79502,215,936
3Jun 27, 2021 16:2433,33599,139,64429,334,85202,224,128
4Jun 27, 2021 16:2235,94295,696,48131,628,88302,224,128
5Jun 27, 2021 16:2235,96095,101,81831,644,56802,211,840
6Jun 27, 2021 16:2236,00971,422,43431,688,00402,215,936
7Jun 27, 2021 16:2436,44460,183,84531,069,0001,002,0002,375,680
8Jun 27, 2021 16:2436,55656,871,34330,159,0002,010,0002,379,776
9Jun 27, 2021 16:2436,58460,237,51031,188,0001,006,0002,379,776
10Jun 27, 2021 16:2436,64858,095,07230,235,0002,015,0002,265,088
11Jun 27, 2021 16:2436,68260,128,33830,263,0002,017,0002,269,184
12Jun 27, 2021 16:2436,69457,302,75031,282,0001,009,0002,269,184
13Jun 27, 2021 16:2436,72760,694,45532,320,00002,269,184
14Jun 27, 2021 16:2436,79158,774,51032,376,00002,269,184
15Jun 27, 2021 16:2436,80157,892,22831,373,0001,012,0002,469,888
16Jun 27, 2021 16:2237,38159,001,04232,895,00002,269,184
17Jun 27, 2021 16:2237,38262,591,52030,903,0001,993,0002,375,680
18Jun 27, 2021 16:2237,38557,905,63030,906,0001,993,0002,269,184
19Jun 27, 2021 16:2237,41061,493,49730,926,0001,995,0002,265,088
20Jun 27, 2021 16:2237,46859,267,13831,973,000999,0002,371,584
21Jun 27, 2021 16:2237,47458,418,16131,978,000999,0002,375,680
22Jun 27, 2021 16:2237,53459,769,66232,030,0001,000,0002,269,184
23Jun 27, 2021 16:2237,55660,269,39132,048,0001,001,0002,269,184
24Jun 27, 2021 16:2237,58660,703,48431,072,0002,004,0002,269,184