Write a program that takes an integer command-line argument n and creates an n-by-n boolean array a[] [] such that a[i] [j] is true if i and j are relatively prime (have no common factors), and false otherwise. Use your solution to EXERCISE 1.4.6 to print the array. Hint: Use sieving.
EXERCISE 1.4.6
Write a code fragment that prints the contents of a two-dimensional boolean array, using * to represent true and a space to represent false. Include row and column indices.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.