This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def Max_Prime_Divisor(n): | |
PrDiv = -1 | |
if n == 1 : return "N.A." # 1 is handled separately | |
# All primes are odd numbers except 2 | |
# We will first check for 2 | |
# Then for other odd numbers starting from 3, same procedure | |