Question: matatica software Using the following code, we will be able to find all distinct integers a and b from 1 to n such that GCD[a,b)
Using the following code, we will be able to find all distinct integers a and b from 1 to n such that GCD[a,b) is composite not prime) integer and their number. gedcom[n : VI -: statement 1: Do[Do[if statement2. Append(v.statement3]:statement4), a, b 1. n)). (6. 1. n- 1}]:Print("The integers are ] Print("Their number is .c]) Statement1 c=0; statement2 (Prime[GCD[a,b]]), statement3: (a,b); statement 4 c*c+1 Statement1 c#0 statement2: (!Prime (GCD[a, b]l); statement3: (a, b), statement CHC+1 Statement1: c=0; statement2: Prime[GCD[a,b]]); statement3: (ab), statement C#C+1 O None of these
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
