freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-347-largest-integer...

56 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f4c81000cf542c50ffd9
challengeType: 5
title: 'Problem 347: Largest integer divisible by two primes'
videoUrl: ''
localeTitle: 问题347最大整数可被两个素数整除
---
## Description
<section id="description">只能被素数2和3整除的最大整数≤100是96因为96 = 32 * 3 = 25 * 3。对于两个不同的素数p和q令MpqN是最大的正整数≤N只能被p和q整除并且如果不存在这样的正整数则MpqN= 0。 <p>例如M2,3,100= 96。 M3,5,100= 75而不是90因为90可以被2,3和5整除。另外M2,73,100= 0因为不存在可以被2和73整除的正整数≤100。 </p><p>设SN为所有不同MpqN的和。 S100= 2262。 </p><p>找到S10 000 000</p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler347()</code>应该返回11109800204052。
testString: 'assert.strictEqual(euler347(), 11109800204052, "<code>euler347()</code> should return 11109800204052.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler347() {
// Good luck!
return true;
}
euler347();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>