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

  1. Write, a program in Python to accept a numeric value from user. Identify if the given number is Prime number or not.
  2. If the number is not a prime number, display all numbers with which that input number is divisible by.
  3. Provide comments wherever necessary.
  4. As a part of submission, upload your iPython notebook.
  5. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!