freeCodeCamp/curriculum/challenges/arabic/08-coding-interview-prep/project-euler/problem-49-prime-permutatio...

1.6 KiB

id challengeType title videoUrl localeTitle
5900f39d1000cf542c50feb0 5 Problem 49: Prime permutations المشكلة 49: التباديل رئيس الوزراء

Description

التسلسل الحسابي ، 1487 ، 4817 ، 8147 ، حيث يزيد كل مصطلح من الشروط بحلول عام 3330 ، هو أمر غير عادي بطريقتين: (1) كل من المصطلحات الثلاثة رئيسة ، و (2) كل من الأرقام المكونة من 4 أرقام التباديل بين بعضها البعض. لا توجد تسلسلات حسابية تتكون من ثلاثة أو 1 أو 2 أو 3 أرقام ، تُظهر هذه الخاصية ، ولكن هناك تسلسل إضافي آخر مكون من 4 أرقام. ما هو الرقم المكون من 12 رقماً الذي تقوم بتكوينه من خلال تسلسل المصطلحات الثلاثة في هذا التسلسل؟

Instructions

Tests

tests:
  - text: يجب أن ترجع primePermutations <code>primePermutations()</code> 296962999629.
    testString: 'assert.strictEqual(primePermutations(), 296962999629, "<code>primePermutations()</code> should return 296962999629.");'

Challenge Seed

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

primePermutations();

Solution

// solution required