This project will calculate prime factors of a given number. A prime number is a whole number greater than 1 whose only factors are 1 and itself. Prime factors are prime numbers that can be multiplied together to get the original number.
Example: Prime factors of 15 are 3 and 5 (3 x 5 = 15, 3 and 5 are prime numbers)
Written in Scala using the Play framework.
- Java SE 1.8 or higher
- sbt has been installed and configured properly
- scala has been installed and configured properly
- Clone project or download and unzip the project file
- Open a terminal at the project's root directory
- Execute
sbt compile
to compile the code - Execute
sbt run
to start the application locally - Visit http://localhost:9000
- You may see an error page that says "Database 'default' needs evolution!"
- Please click the "Apply this script now!" button to initialize database
- Once the index page has been loaded, enter a number greater than 1 in the Number text input
- The prime factors equation will be output under the Equation label
- To quit, in the terminal, press
Ctrl+C
- To run tests, execute the
sbt test
command in the terminal