How can I prove that all prime numbers have irrational square roots?
My work so far: suppose that a prime p = a*a then p is divisible by a. Contradiction. Did I begin correctly? How to continue?
How can I prove that all prime numbers have irrational square roots?
My work so far: suppose that a prime p = a*a then p is divisible by a. Contradiction. Did I begin correctly? How to continue?
The standard proof for $p=2$ works for any prime number.
Note that this answer is included only so it is clear what Igor Rivin meant by standard proof:
$$\sqrt p = \frac a b$$ where $a$ and $b$ are co-prime (the fraction is reduced) and $p$ is prime. $$b^2 p = a^2$$ as $a^2$ must disible by $p$ means $a$ must be divisible by $p$ $$b^2 = p c^2$$ where $c=\frac p a$
This will result in the fact that $b$ must also be divisble by $p$ which is a contraction of the fact that $a$ and $b$ are co-prime.
Please try this with $p = 4$ and see where is breaks down.
$p=a^2/b^2\implies a^2=pb^2$. The number of prime factors of $a^2$ is even whereas the numbers of prime factors of $ pb^2$ is odd.