Giter VIP home page Giter VIP logo

derektypist / project-euler-047 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 25 KB

Finds the first consecutive number in the consecutive numbers to have a certain number of distinct prime factors each. For example, 14 is the first consecutive number of two consecutive numbers (14 and 15) to have two distinct prime factors.

Home Page: https://derektypist.github.io/project-euler-047

HTML 50.89% CSS 11.76% JavaScript 37.35%
bootstrap5 css3 google-fonts htm5 javascript project-euler

project-euler-047's Introduction

Project Euler 047 - Distinct Primes Factors

The first two consecutive numbers to have two distinct prime factors are:

  • 14 = 2 x 7
  • 15 = 3 x 5

The first three consecutive numbers to have three distinct prime factors are:

  • 644 = 22 x 7 x 3
  • 645 = 3 x 5 x 43
  • 646 = 2 x 17 x 19

Find the first four consecutive integers to have four distinct prime factors each. What is the first of these numbers?

Information at Project Euler 047

UX

Getting Started

Select Show Solution to show the solutions. Or Hide Solution to hide the solutions.

User Stories

As a user, I can show or hide the solution by selecting the appropriate button.

As a user, I expect the function distinctPrimesFactors(2,2) to return a number.

As a user, I expect the function distinctPrimesFactors(2,2) to return 14.

As a user, I expect the function distinctPrimesFactors(3,3) to return 644.

As a user, I expect the function distinctPrimesFactors(4,4) to return 134043.

User Stories on function distinctPrimesFactors(targetNumPrimes,targetConsecutive) taken from FreeCodeCamp - Coding Interview Prep - Project Euler 047

Information Architecture

The function distinctPrimesFactors(targetNumPrimes,targetConsecutive) returns a number. The parameters targetNumPrimes and targetConsecutive are both numbers.

targetNumPrimes ranges from 2 to 4 and targetConsecutive ranges from 2 to 4.

Features

Allows the user to show or hide the solutions to the problem as described in Project Euler 047

Technologies

Uses HTML5, CSS3, JavaScript, Bootstrap 5.2.2 and Google Fonts.

Testing

Ensure all user stories have been met.

Deployment

Deployed on GitHub Pages at the main branch.

Credits

Content

Written by me.

Acknowledgements

project-euler-047's People

Contributors

derektypist avatar

Watchers

 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.