human
Give me a code to find a range of composite numbers of given length and the other steps required given the following:
Find a range of composite numbers of given length | function to calculate factorial.
to print range of length n having all composite integers.
driver code to test above functions"
Solution in Python:
assistant
#Here is code to find a range of composite numbers of given length and the other steps required.
 def factorial ( n ) :
	a = 1
	for i in range ( 2 , n + 1 ) :
		a *= i
	return a
def printRange ( n ) :
	a = factorial ( n + 2 ) + 2
	b = a + n - 1
	print ( " [ " + str ( a ) + " , ▁ " + str ( b ) + " ] " )
n = 3
printRange ( n )