import os import sys from math import sqrt def factors(n): fact=[1,n] check=2 rootn=sqrt(n) while check