Created by jean-luc-poncin
Created on February 23, 2022
289 Bytes
from math import * # Ex 12.2 def dv(a,b): if(a%b==0): rep=True else: rep=False return(rep) # Ex 12.3 def ppdv(a): d=2 while(a%d!=0): d=d+1 return(d) # Ex 12.4 def prem(a): if(ppdv(a)==a): rep=True else: rep=False return(rep)