1

[other] Help with Logic

view story
linux-howto

http://ubuntuforums.org – Hey Guys i am currently doing the problems from projecteuler.net as you guys suggested to improve my Programming Knowledge.. There i got a challenge The Problem is as follows The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? The Code/logic i wrote for that is as follows import java.io.*; import java.util.Scanner; class prime { public static void main(String[] args) throws Exception { long i,j,a; long k=600851475143.; Scanner s =new Scanner(System.in); System.out.println("Enter Number&quo (Hardware)