Hello, this is a loop I've written to find all the prime numbers up to the input from the user (n)
I can see that this one has many steps to perform and so I am looking for a way to improve it's...
Type: Posts; User: java-noobette
Hello, this is a loop I've written to find all the prime numbers up to the input from the user (n)
I can see that this one has many steps to perform and so I am looking for a way to improve it's...
I'm writing a complex for loop to find prime numbers. What I have so far is this:
What I guess I'm trying to achieve is the rest of the loop...but I don't know how :confused:
I'm going to...
I'm calling it from my main method, and I would really like to call it using System.err.println()
At the moment, I can see that System.err.println(timeTaken()) means that I'll have to change...
This is what the method I have written looks like.
The error I get is 'void' type not allowed here, which I researched and learnt that: I am using a method that does not return a value in a place...