freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-118-pandigital-prim...

963 B
Raw Blame History

id challengeType title videoUrl localeTitle
5900f3e21000cf542c50fef5 5 Problem 118: Pandigital prime sets 问题118Pandigital prime set

Description

使用所有数字1到9并自由地连接它们以形成十进制整数可以形成不同的集合。有趣的是集合{2,5,47,89,631}属于它的所有元素都是素数。包含每个数字1到9的多少个不同的集合只包含主要元素

Instructions

undefined

Tests

tests:
  - text: <code>euler118()</code>应返回44680。
    testString: 'assert.strictEqual(euler118(), 44680, "<code>euler118()</code> should return 44680.");'

Challenge Seed

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

euler118();

Solution

// solution required