redesigned isPrime function, added isNotDivisor and getDivisorList functions