#!/usr/bin/env python3 # # # Copyright (c) 2021, Hiroyuki Ohsaki. # All rights reserved. # # $Id: num.py,v 1.3 2021/11/15 10:58:41 ohsaki Exp $ # def main(): for n in range(1, 100 + 1): # Divisable by two? if n % 2 == 0: continue # Divisable by three? if n % 3 == 0: continue # The last digit is zero or five? if n % 10 in [0, 5]: continue print(n) if __name__ == "__main__": main()