from script import maths
from script.sieve import sieve
from math import ceil,log
from functools import reduce
from operator import mul
def e005(top=20):
    return reduce(mul,[i**(ceil(log(top)/log(i))-1) for i in sieve(top)])

def Euler_5(top=20):
    val = 1
    for i in range(1,top+1):
        if maths.isprime2(i):
            num = i
            while num<=top:
                num = num*i
            val *=(num//i)
    return val
    
if __name__=='__main__':
    print(e005())
    #print('next')
    #print(Euler_5())

6c78d223041a5e00de1c2e35cf5b42bbc4d84690
<mask token>

<mask token>


def Euler_5(top=20):
    val = 1
    for i in range(1, top + 1):
        if maths.isprime2(i):
            num = i
            while num <= top:
                num = num * i
            val *= num // i
    return val


<mask token>

<mask token>


def e005(top=20):
    return reduce(mul, [(i ** (ceil(log(top) / log(i)) - 1)) for i in sieve
        (top)])


def Euler_5(top=20):
    val = 1
    for i in range(1, top + 1):
        if maths.isprime2(i):
            num = i
            while num <= top:
                num = num * i
            val *= num // i
    return val


if __name__ == '__main__':
    print(e005())

from script import maths
from script.sieve import sieve
from math import ceil, log
from functools import reduce
from operator import mul


def e005(top=20):
    return reduce(mul, [(i ** (ceil(log(top) / log(i)) - 1)) for i in sieve
        (top)])


def Euler_5(top=20):
    val = 1
    for i in range(1, top + 1):
        if maths.isprime2(i):
            num = i
            while num <= top:
                num = num * i
            val *= num // i
    return val


if __name__ == '__main__':
    print(e005())

from script import maths
from script.sieve import sieve
from math import ceil,log
from functools import reduce
from operator import mul
def e005(top=20):
    return reduce(mul,[i**(ceil(log(top)/log(i))-1) for i in sieve(top)])

def Euler_5(top=20):
    val = 1
    for i in range(1,top+1):
        if maths.isprime2(i):
            num = i
            while num<=top:
                num = num*i
            val *=(num//i)
    return val
    
if __name__=='__main__':
    print(e005())
    #print('next')
    #print(Euler_5())
