@@ -0,0 +1,948 @@
+#-------------------------------------------------------------------------------%0A# Name:        prime_test%0A# Purpose:%0A#%0A# Author:      brian hartz%0A#              brianhartz@gmail.com%0A#%0A# Created:     19-09-2013%0A# Copyright:   (c) bhartz 2013%0A# Licence:     %3Cyour licence%3E%0A#-------------------------------------------------------------------------------%0A#!/usr/bin/env python%0A%0Aimport argparse,sys%0A%0A%0Adef main():%0A    parser = argparse.ArgumentParser(description=%22Is it a prime?%22)%0A%0A    parser.add_argument(%22Number%22, type=int)%0A%0A    args = parser.parse_args()%0A%0A    num = args.Number%0A%0A    test_list = range(num/2)%0A    test_list.reverse()%0A%0A    for i in test_list:%0A        if num %25 (i) == 0:%0A            if i == 1:%0A                print %22number %7B%7D is a prime%22.format(num)%0A                break%0A            else:%0A                print %22Number %7B%7D is not a prime, divisible by %7B%7D%22.format(num, (i))%0A                break%0A%0A%0Aif __name__ == '__main__':%0A    main()%0A

Create prime_test.py