>> javac Main.java >> java Main Find sum of prime numbers upto : Sum of all prime numbers upto 50 : 326