An integer implementation of euler totient function