import math


def get_from_decomposition(decomposition):
    """Returns a number from a prime decomposition"""
    result = 1
    for key in decomposition:
        result *= math.pow(key, decomposition[key])
    return result