Write a short program that test a number to see if its prime


Problem

Write a short program that tests a number to see if it's prime. If it is, have it print out a short message. If it's not, have Mathematica factor it and print out its prime factorization. It would be good practice to test the number to see if it's an integer before doing anything else: and print out an error message if it's not an integer.

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: Write a short program that test a number to see if its prime
Reference No:- TGS03256959

Expected delivery within 24 Hours