Search:

Type: Posts; User: tdz013

Search: Search took 0.10 seconds.

  1. Thread: prime numbers

    by tdz013
    Replies
    4
    Views
    2,288

    Re: prime numbers

    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);
  2. Thread: prime numbers

    by tdz013
    Replies
    4
    Views
    2,288

    prime numbers

    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...
Results 1 to 2 of 2