Listing Prime Numbers
$10-30 USD
Bezahlt bei Lieferung
I need you to develop some program for me. I would like this program to be developed using Python.
Write a program to list prime numbers for a user.
Recall that a positive integer n is called "prime" if n has exactly two
divisors: 1 and n.
(Note that 1 is NOT a prime number; it only has 1 divisor.)
How to do this: Let the user give three choices:
1. A positive integer, a, for the first prime to start the list.
2. Which they want:
2a. How many consecutive prime numbers to list, starting at a, or
2b. the last number b (with b > a) to consider for the list.
3. The number corresponding to the choice in #2.
Hint: When checking if a number m is prime, you only need to check
possible divisors up to the square root of m. (Think about why!)
Compute the list according to the user's specifications,
print the list to the user, and ask if they want to do it all again.
If they do, be sure you are able to re-use the list you have just computed!
Projekt-ID: #15467068
Über das Projekt
Vergeben an:
Hi! I can write a correct small program for this quite quickly. Just tell me until when you need it ready Thanks Relevant Skills and Experience python coding Proposed Milestones $22 USD - is ok?
6 Freelancer bieten im Durchschnitt $23 für diesen Job
Consider it done, it will take me less than an hour ;) Relevant Skills and Experience Attended some heavy Algorithmic courses,Problem solver, Python expert, so this is no problem for me ;) Stay tuned, I'm still work Mehr