通过海量题库、编程比赛和实时排名,系统化提升您的编程能力。
判断函数q1的功能,求出算法的时间复杂度______
def q1(n): i=2 x=int(math.sqrt(n)) while i<=x: if n%i==0: return False i+=1 return True