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 18:58Yuriy LyfenkoYuriy LyfenkoScore: 44,965Success
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 18:5832,53397,625,64728,628,86402,228,224
2Jun 27, 2021 18:5832,59483,287,13728,682,75202,228,224
3Jun 27, 2021 18:5832,63093,438,51828,714,49302,220,032
4Jun 27, 2021 18:5832,64492,973,75428,726,66102,224,128
5Jun 27, 2021 18:5832,65286,144,68628,734,10702,224,128
6Jun 27, 2021 18:5832,70598,344,61328,780,53802,211,840
7Jun 27, 2021 18:5844,72763,311,44138,351,0001,009,0002,379,776
8Jun 27, 2021 18:5844,74266,667,92638,364,0001,009,0002,383,872
9Jun 27, 2021 18:5844,81864,894,66139,440,00002,269,184
10Jun 27, 2021 18:5844,89162,667,20539,504,00002,269,184
11Jun 27, 2021 18:5844,94764,833,61739,553,00002,269,184
12Jun 27, 2021 18:5844,96462,233,60839,568,00002,265,088
13Jun 27, 2021 18:5844,96559,738,23938,555,0001,014,0002,269,184
14Jun 27, 2021 18:5844,98963,690,56939,590,00002,265,088
15Jun 27, 2021 18:5845,00564,643,31038,589,0001,015,0002,269,184
16Jun 27, 2021 18:5845,01463,897,68939,612,00002,269,184
17Jun 27, 2021 18:5845,03661,808,10938,616,0001,016,0002,371,584
18Jun 27, 2021 18:5845,05666,325,53638,633,0001,016,0002,269,184
19Jun 27, 2021 18:5845,06963,675,57638,645,0001,016,0002,269,184
20Jun 27, 2021 18:5845,06965,653,71439,661,00002,269,184
21Jun 27, 2021 18:5845,08969,782,06439,678,00002,375,680
22Jun 27, 2021 18:5845,10867,037,52138,678,0001,017,0002,379,776
23Jun 27, 2021 18:5845,13166,623,88538,697,0001,018,0002,371,584
24Jun 27, 2021 18:5845,32764,716,24838,891,000997,0002,461,696