Printing Sorted fractions comprising of coprime integers from 0 to n

Farey series is also an alternate name
Wikipedia implementation