Giter VIP home page Giter VIP logo

prime-factorizations-play's Introduction

Prime Factorization Play

Build Status

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.

Prerequisites

  1. Java SE 1.8 or higher
  2. sbt has been installed and configured properly
  3. scala has been installed and configured properly

How To

  1. Clone project or download and unzip the project file
  2. Open a terminal at the project's root directory
  3. Execute sbt compile to compile the code
  4. Execute sbt run to start the application locally
  5. Visit http://localhost:9000
    1. You may see an error page that says "Database 'default' needs evolution!"
    2. Please click the "Apply this script now!" button to initialize database
  6. Once the index page has been loaded, enter a number greater than 1 in the Number text input
  7. The prime factors equation will be output under the Equation label
  8. To quit, in the terminal, press Ctrl+C

Testing

  1. To run tests, execute the sbt test command in the terminal

prime-factorizations-play's People

Contributors

alapp87 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.