def all_prime(no)->list:
	"""
	Return the list of all prime numbers till the number given by user.
	This function uses the concept the sieve.
	"""
	prime=[0 for i in range(no+1)]
	no_prime=[]
	for i in range(2,no+1):
		if prime[i]==0:
			for j in range(i*i,no+1,i):
				prime[j]=1
	for i in range(2,no+1):
		if prime[i]==0:
			no_prime.append(i)
	return no_prime