CSC221 Prime factors solved

$24.99

Original Work ?

Download Details:

  • Name: 6-PrimeFactors.zip
  • Type: zip
  • Size: 16.95 KB

Category: You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (2 votes)

CSC 22100: Assignment 6
Write a program that takes a whole number input from a user and determines whether it’s prime. If the number is not prime, display its unique prime factors. Remember that a prime number’s factors are only 1 and the prime number itself. Every number that’s not prime has a unique prime factorization For example, consider the number 54. The prime factors of 54 are 2,3,3 and 3. When the values are multiplied together, the result is 54. For the number 54, the prime factors output should be 2 and 3. Use Sets as part of your solution.