Week 11 - Math Olympiad

posted Jan 6, 2017, 8:09 PM by Attila Lengyel
number = 2 * 3 * 5 * 7 * 11

for x in range(1, 6):
  guess = number * 2 * x
  sGuess = str(guess)
  if len(sGuess) != 4: continue 
  if sGuess.count("6") > 0: continue
  if sGuess.count("9") != 1: continue
  print(guess)
  42

multipliers = input("How many multipliers?")
multi = []
for x in range(1, int(multipliers) + 1):
  multi.append(input("Give me a multi:"))
print(multi)
Comments