n should be divisible by i
if ( n % ( i + 1 ) != 0 ) { flag = false ; break ; } } if ( flag ) System . out . println ( N + " ▁ is ▁ Polydivisible ▁ number . " ) ; else System . out . println ( N + " ▁ is ▁ Not ▁ Polydivisible ▁ number . " ) ; }