if a[i] is greater than n-2 than here its given continue but actually a should be in range of 2 to n-2 .so if a becomes >(n-2) then beak condition should be applied?
and in other line
if(ad%n==1) then here why continue is given?
can’t we consider n as prime only if the above ccondition is satisfied