- to check if a number is prime
- to get the prime factor of a number
- Listing out primes less than a specified number
- Determining whether a given number is prime
- Breaking a number into its prime factors
- it works with integers within the bound of 10000
prime takes an optional command line parameter of "-f", which determines the operation type. If "-f" then, it prompts you for an input and returns it prime factor(s), for any other parameter aside from "-f" prime will perform a primality check on user input, returning "It is prime!" if test is passed, otherwise "It is not a prime number".