Write a wrong phi algorithm