Given an integer n, return the number of permutations of numbers from n such that prime numbers are placed at prime indices (
Since the answer may be large, return it modulo
Note: A positive integer is prime if it is strictly greater than
and cannot be formed by multiplying two smaller positive integers. Indices are indexed.
Constraints:
n
Given an integer n, return the number of permutations of numbers from n such that prime numbers are placed at prime indices (
Since the answer may be large, return it modulo
Note: A positive integer is prime if it is strictly greater than
and cannot be formed by multiplying two smaller positive integers. Indices are indexed.
Constraints:
n