<filename>answers/kunal/day2/question2.py<gh_stars>10-100
def main():
    n=int(input("Enter : "))
    p=n
    m=""
    while p>0:
        x=p%10
        p=p//10
        m=m+str(x)

    m=int(m)
    for i in range(2,n):
        if n%i==0:
            print("not an emirp number")
            print("1")
            break
    else:
        for i in range(2,m):
            if m%i==0:
                print("not an emirp number")
                break
        else:
            print(n, " is an emirp number")
main()
                
