Melodrama schreef:
def priemCheck(x):
lijstDelers = []
delerCheck = x
while delerCheck >= 1:
if x % delerCheck == 0:
lijstDelers.append(delerCheck)
delerCheck -= 1
if len(lijstDelers) == 2:
return True
else:
return False
mooi he
def priemCheck(x):
lijstDelers = []
delerCheck = x
while delerCheck >= 1:
if x % delerCheck == 0:
lijstDelers.append(delerCheck)
delerCheck -= 1
if len(lijstDelers) == 2:
return True
else:
return False
mooi he