Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-193-squarefree-numbers.english.md
mrugesh 22afc2a0ca feat(learn): python certification projects (#38216)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
2020-05-27 13:19:08 +05:30

881 B

id, challengeType, isHidden, title, forumTopicId
id challengeType isHidden title forumTopicId
5900f42f1000cf542c50ff41 5 false Problem 193: Squarefree Numbers 301831

Description

A positive integer n is called squarefree, if no square of a prime divides n, thus 1, 2, 3, 5, 6, 7, 10, 11 are squarefree, but not 4, 8, 9, 12.

How many squarefree numbers are there below 250?

Instructions

Tests

tests:
  - text: <code>euler193()</code> should return 684465067343069.
    testString: assert.strictEqual(euler193(), 684465067343069);

Challenge Seed

function euler193() {
  // Good luck!
  return true;
}

euler193();

Solution

// solution required