summaryrefslogtreecommitdiff
path: root/progs/a623.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a623.py')
-rw-r--r--progs/a623.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/a623.py b/progs/a623.py
new file mode 100644
index 0000000..3e4ade4
--- /dev/null
+++ b/progs/a623.py
@@ -0,0 +1,4 @@
+def newman_prime(n):
+ if n == 0 or n == 1:
+ return 1
+ return 2 * newman_prime(n - 1) + newman_prime(n - 2) \ No newline at end of file