freeCodeCamp/curriculum/challenges/portuguese/08-coding-interview-prep/project-euler/problem-182-rsa-encryption....

2.5 KiB

id challengeType title videoUrl localeTitle
5900f4231000cf542c50ff35 5 Problem 182: RSA encryption Problema 182: Criptografia RSA

Description

A criptografia RSA é baseada no seguinte procedimento: Gere dois primos distintos p e q.Compute n = pq e φ = (p-1) (q-1). Encontre um inteiro e, 1

Instruções

Testes

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

Semente do Desafio

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

Solução

 // solution required 

Instructions

Tests

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

Challenge Seed

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

euler182();

Solution

// solution required