Sunday, November 11, 2012

Java Exercise #50: Prime Numbers Above Long.MAX_VALUE

The problem is to write a program that finds out the prime numbers greater than Long.MAX_VALUE

Exercise: Write a program that prints five prime numbers greater than Long.MAX_VALUE

The program was running for hours and hence could not determine the output. However, to ensure that the program is fine, I tested the program for lower values.

Download Code: Big Prime Numbers

No comments:

Post a Comment