My problems are the prime number algorithm and my sexy prime pairs im a little unsure as to how to calculate them and I understand my attempts to do so have not been very good.
Type: Posts; User: BinaryPenguin14
My problems are the prime number algorithm and my sexy prime pairs im a little unsure as to how to calculate them and I understand my attempts to do so have not been very good.
My major problem is calculating the prime numbers using the sieve of eratosthenes algorithm. How do I Loop through the factors and mark them like and unmark them if they are prime?
So I have been given a problem in class stating that I had to calculate the sexy prime pairs. I have to use the sieve of eratosthenes alogorithm and a array to calculate the prime numbers and then...