diff options
Diffstat (limited to 'progs/a966.py')
-rw-r--r-- | progs/a966.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/a966.py b/progs/a966.py new file mode 100644 index 0000000..2e036ee --- /dev/null +++ b/progs/a966.py @@ -0,0 +1,7 @@ +import math
+def is_not_prime(n):
+ result = False
+ for i in range(2,int(math.sqrt(n)) + 1):
+ if n % i == 0:
+ result = True
+ return result
\ No newline at end of file |