CodingEasy
Count permutations with prime numbers at prime indices
Filed under Sabre
The question
Given an integer N, count the number of permutations of numbers from 1 to N such that in 1-based indexing, prime indices only contain prime numbers.
No write-up yet. Related questions below have one.
Related Sabre questions
Collected from public candidate posts and coding forums. Updated Nov 2026.