--- id: 5900f53e1000cf542c510051 challengeType: 5 title: 'Problem 466: Distinct terms in a multiplication table' videoUrl: '' localeTitle: 'Problema 466: Termos distintos em uma tabela de multiplicação' --- ## Description
Seja P (m, n) o número de termos distintos em uma tabela de multiplicação m × n.

Por exemplo, uma tabela de multiplicação 3 × 4 tem esta aparência:

× 12341 12342 24683 36912

Existem 8 termos distintos {1,2,3,4,6,8,9,12}, portanto P (3,4) = 8.

Você está dado que: P (64,64) = 1263, P (12.345) = 1998, e P (32,1015) = 13826382602124302.

Encontre P (64,1016).

## Instructions
## Tests
```yml tests: - text: euler466() deve retornar 258381958195474750. testString: 'assert.strictEqual(euler466(), 258381958195474750, "euler466() should return 258381958195474750.");' ```
## Challenge Seed
```js function euler466() { // Good luck! return true; } euler466(); ```
## Solution
```js // solution required ```