Files
freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-182-rsa-encryption.english.md
Oliver Eyton-Williams f1c9b08cf3 fix(curriculum): add isHidden: false to challenges
This includes certificates (where it does nothing), but does not
include any translations.
2020-05-25 16:25:19 +05:30

1.9 KiB

id, challengeType, isHidden, title, forumTopicId
id challengeType isHidden title forumTopicId
5900f4231000cf542c50ff35 5 false Problem 182: RSA encryption 301818

Description

The RSA encryption is based on the following procedure: Generate two distinct primes p and q.Compute n=pq and φ=(p-1)(q-1). Find an integer e, 1

Instructions

Tests

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

Challenge Seed

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

euler182();

Solution

// solution required