mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-19 19:03:02 +08:00
from __future__ import annotations (#2464)
* from __future__ import annotations * fixup! from __future__ import annotations * fixup! from __future__ import annotations * fixup! Format Python code with psf/black push Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from itertools import permutations
|
||||
from math import sqrt
|
||||
from typing import List
|
||||
|
||||
"""
|
||||
We shall say that an n-digit number is pandigital if it makes use of all the digits
|
||||
@ -34,7 +35,7 @@ def is_prime(n: int) -> bool:
|
||||
return True
|
||||
|
||||
|
||||
def compute_pandigital_primes(n: int) -> List[int]:
|
||||
def compute_pandigital_primes(n: int) -> list[int]:
|
||||
"""
|
||||
Returns a list of all n-digit pandigital primes.
|
||||
>>> compute_pandigital_primes(2)
|
||||
|
Reference in New Issue
Block a user