This simple example explains how to write a Java program to print the fibonacci numbers. Fibonacci numbers are sequence of numbers where one number is the sum of preceding two numbers. An example for the fibonacci is “0, 1, 1, 2, 3, 5, 8, 13, 21, 34, …”. If you look at the series, every […]

## Prime Number Generation in Java

This simple example demonstrates how to get the prime numbers using Java program for the given range. What is prime number?. A number which is divided only by 1 and itself is known as the prime number. If you take an example, 7 is a prime number, because it can be divided by only itself(7) […]