Older Brother
InterviewTime limit2sMemory limit512 MB
Given an integer q up to 1e9, decide whether q is a prime power, printing yes or no.
- Level
Easy3 of 10
- Topics
- Number theory, Math
- Solved
- No attempts yet
Problem
Your older brother is an amateur mathematician with plenty of experience. His memory is bad, though, and he never remembers which finite fields exist. For you this is an easy question. A finite field of order exists if and only if is a prime power, that is, for some prime and some integer . When such a field exists, it is unique up to isomorphism.
The conversation with your brother went roughly like this.

Input
The input contains one integer ().
Output
Print yes if a finite field of order exists. Otherwise print no.