Permutations of natural numbers with prime indices at primes
Filed under Oppo R&D
The question
Given a positive number n, find the total number of permutations of natural numbers from 1 to n in which indices of prime numbers are also prime numbers, and return the answer modulo 1000000007.
No write-up yet. Related questions below have one.
Related Oppo R&D questions
Collected from public candidate posts and coding forums. Updated Nov 2026.