[ create a new paste ] login | about

Link: http://codepad.org/SqPagoqv    [ raw code | output | fork ]

Python, pasted on Nov 26:
1
2
3
4
5
6
7
8
9
def factorial(n):
	ret = 1
	for i in range(1, n + 1):
		ret *= i
	return ret
for n in range(1, 10):
	if factorial(n) > n * (2 ** n):
		print n
		break


Output:
1
6


Create a new paste based on this one


Comments: