Permutations preserving relative position of primes
Filed under Oppo R&D
The question
Given an integer N, find the number of possible permutations of N integers (1 to N) modulo 1e9+7 such that the relative positions of prime numbers remain the same.
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.