Search:

Type: Posts; User: Danny123

Search: Search took 0.21 seconds.

  1. Replies
    17
    Views
    903

    Re: Prime number solver.

    Then I apologize. I was under the impression that you thought I did not know what a prime was. I think I know the algorithm now.

    Find the factors of a number ( by using if number % otherNumber = 0...
  2. Replies
    17
    Views
    903

    Re: Prime number solver.

    @ Norm. I know what prime numbers are, don't be so cheeky.

    @ Javapenguin. Thank you. otherNumber !=1 and otherNumber != number. This is the code i needed. Can I ask you if my method is still...
  3. Replies
    17
    Views
    903

    Re: Prime number solver.

    @ Norm. I apologize for not wording it correctly. I will try my best to convey it to you. I want to have a list of numbers, ( 1 to 10 in this case ) and I want to pick out the primes from this list,...
  4. Replies
    17
    Views
    903

    Re: Prime number solver.

    @ Norm. I want to print out the prime numbers, not the amount of them calculated. The variable number ( which is declared in the very first for loop ) holds each number that may or may not be a...
  5. Replies
    17
    Views
    903

    Re: Prime number solver.

    @ Norm. Yes i did not think about a design before writing the code, it is something I need to start doing. I have written the logical list of steps:


    1: Loop through some numbers up to a certain...
  6. Replies
    17
    Views
    903

    Prime number solver.

    Good day. I want to create a program to calculate prime numbers up to an integer limit. I am extremely new to Java ( I'm on hour 13 of Sam's teach yourself Java in 24 hours), so bear with me.

    I...
Results 1 to 6 of 6