Driver code
public static void main ( String [ ] args ) { Arrays . fill ( ans , 1 ) ; preCompute ( ) ; int queries = 5 ; int [ ] a = { 4 , 6 , 8 , 16 , 36 } ; for ( int i = 0 ; i < queries ; i ++ ) { System . out . print ( productOfProperDivi ( a [ i ] ) + " , ▁ " ) ; } } }