Yeah so far I only have entering the random number part.
import java.util.Scanner;
public class prog335t
{
public static void main(String[]args)
{
Scanner input=new Scanner(System.in);
Type: Posts; User: tdz013
Yeah so far I only have entering the random number part.
import java.util.Scanner;
public class prog335t
{
public static void main(String[]args)
{
Scanner input=new Scanner(System.in);
So I understand the basics of finding prime numbers, but I'm trying to do something a bit different. I want to find the prime number that follows or comes before any random number. So for example if...