003 - Largest prime factor - Project Euler Challenge - JavaScript freeCodeCamp

preview_player
Показать описание
The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of any given number?

00:00 - Introduction
01:12 - Working
08:13 - Solution

-————————————————————————————————————-
Project Euler (named after Leonhard Euler) is a website dedicated to a series of computational problems intended to be solved with computer programs. The project attracts adults and students interested in mathematics and computer programming. Since its creation in 2001 by Colin Hughes, Project Euler has gained notability and popularity worldwide. It includes over 700 problems, with a new one added once every one or two weeks. Problems are of varying difficulty, but each is solvable in less than a minute of CPU time using an efficient algorithm on a modestly powered computer. As of 5 April 2020, Project Euler has more than 1,000,000 users, from all over the world, who have solved at least one problem.

NOTE: I am not a teacher by any means, these videos are just to help me improve my understanding.

Thanks for Watching!
Рекомендации по теме
Комментарии
Автор

Man, solved the problem in a more complicated way and looking to improve my coding i got to your video.

But your way isnt really taking only prime numbers, not every odd number is a prime number. What was the other more complicated way?

cerveux
visit shbcf.ru