public static void main(String [] args){
		long max =0;
		long n =600851475143L;
		
		long[] factors = getFactors(n);
		
		for(long i: factors){
			if(isPrime(i) && i > max){
				max = i;
			}
		}
		System.out.println("Max prime factor of " + n + " is: " + max);
		
	}