import asyncio
import math
async def calculo_fatorial(valor):
resultado = math.factorial(valor)
await asyncio.sleep(valor)
print(f'Fatorial de {valor} = {resultado}')
numeros = [5, 3 , 7, 4, 6]
async def main():
tarefas = [calculo_fatorial(numero) for numero in sorted(numeros)]
await asyncio.gather(*tarefas)
asyncio.run(main())