Function calculates all number not greater than ' m ' which are relatively prime with n .
function countRelPrime ( n , m ) { let a = new Array ( 20 ) ; let i = 0 , j = 0 ; let pz = prime . length ; while ( n != 1 && i < pz ) {