Skip to content Skip to sidebar Skip to footer
Showing posts with the label Primes

How Do I Find A Prime Number Using Recursion In Python

I have to find out whether number(N) is a prime or not using recursion, no loops are allowed. I'… Read more How Do I Find A Prime Number Using Recursion In Python

Efficient Ways Of Finding The Largest Prime Factor Of A Number

I'm doing this problem on a site that I found (project Euler), and there is a question that inv… Read more Efficient Ways Of Finding The Largest Prime Factor Of A Number

Finding The Nth Number Of Primes

I can not figure out why this won't work. Please help me from math import sqrt pN = 0 numPrim… Read more Finding The Nth Number Of Primes

Finding The Nth Prime Number Using Python

When I run this code, even for just counting to the 10th prime number (instead of 1000) I get a ske… Read more Finding The Nth Prime Number Using Python

Python Modifying Wrong List?

I'm trying to generate a list of primes using the this method. I need to loop through every num… Read more Python Modifying Wrong List?

Finding The Nth Number Of Primes

I can not figure out why this won't work. Please help me from math import sqrt pN = 0 numPrim… Read more Finding The Nth Number Of Primes