예제 #1
0
파일: 044.py 프로젝트: bryanalves/euler-py
def penta_filter(f):
    return lib.is_penta(f[0] + f[1]) and lib.is_penta(f[0] - f[1])
예제 #2
0
파일: 045.py 프로젝트: bryanalves/euler-py
def _filter(n):
    return n > 40755 and is_hexagonal(n) and lib.is_penta(n)