Tagged Questions
6
votes
2answers
121 views
Prime Number Speed
I know prime number programs have been beaten to death. I am have been programming for eight years (not that long, but I'm not in my 20s yet and I got a programming job straight out of high school so ...
7
votes
2answers
1k views
Finding prime factors of a number?
Okay, so just having a little fun I thought I'd see if I could write an algorithm to find all of the prime factors of a number. The solution I came up with is as follows:
...
7
votes
1answer
212 views
Prime Numbers Store
Let's say we need to create a store for selling prime numbers.
Users enter the store and ask to buy a number.
If the number asked is a prime number,
1.1. then it's either available for sale
1.2. ...
3
votes
1answer
97 views
Quadratic Primes
This is one of the slightly trickier Project Euler Questions I have seen (Question 27)
...
4
votes
4answers
606 views
Sum of primes less than 2,000,000
I have been attempting the questions at Project Euler and I am trying to find the sum of Primes under two million (question 10)
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
Find the ...
3
votes
3answers
227 views
Prime numbers, Prime Factors and LCM
I am trying to generate LCM by prime factorization. I have already done the other way around to generate LCM using GCD but I am trying to achieve it using prime factorization.
I am getting right ...
3
votes
6answers
4k views
Find the largest Prime Factor of the number 600851475143
I am trying to complete this challenge, which is to find the Find the largest Prime Factor of the number 600851475143.
My current solution is below:
...
4
votes
3answers
218 views
Finding and testing primality
I have written a class who is responsible for both enumerating primes and testing the primality of a number.
Here is the code :
...
28
votes
6answers
4k views
I wrote a program in C# to calculate prime numbers making use of Parallel.ForEach, please critique
In spare time I decided to write a program that would systematically identify prime numbers from 2 to 18,446,744,073,709,551,615. This is for fun and learning, as I know it will take too long to ...