

Möbius FunctionFor any positive integer x, the classical Möbius function μ(x) has values in {–1, 0, 1}, defined in the following way:
μ(x) = 1 if x is a squarefree positive integer with an even number of prime factors; Write a program that calculates the value of the Möbius function for a given positive integer. Input SpecificationThe input contains several numbers, where each number is less than 2 000 000 000. Output SpecificationFor each number, calculate the corresponding value of the Möbius function and write the result to the standard output, each value in a separate line. Sample Input
Output for Sample Input


University of Debrecen; Faculty of Informatics; v. 03/01/2019 