summaryrefslogtreecommitdiff
path: root/progs/a623.py
blob: 3e4ade4cdda374b9bbe72e51d6063e015a6043c6 (plain)
1
2
3
4
def newman_prime(n): 
	if n == 0 or n == 1: 
		return 1
	return 2 * newman_prime(n - 1) + newman_prime(n - 2)