The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
First line contains T
, the number of test cases. This is followed by T
lines each containing an integer N
.
For each test case, display the largest prime factor of N
.
2
10
17
5
17
- Prime factors of
10
are{2, 5}
, largest is5
. - Prime factors of
17
is17
itself, hence largest is17
.