Question: DS 510 - Week 8 Assignment Write, a program in Python to accept a numeric value from user. Identify if the given number is Prime
DS 510 - Week 8
Assignment
- Write, a program in Python to accept a numeric value from user. Identify if the given number is Prime number or not.
- If the number is not a prime number, display all numbers with which that input number is divisible by.
- Provide comments wherever necessary.
- As a part of submission, upload your iPython notebook.
- Grading will be done by running the iPython notebook code and inputting 10 difference values, randomly chosen (mix of prime and non-prime numbers). Your code should be able to identify any and every prime number passed on to it as an input.
All the best.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
