Available question text
Count permutations of 1..n where every prime number appears at a prime (1-based) index — equivalently, with p = number of primes ≤ n, compute p! * (n−p)! modulo 10^9+7. Constraint: 1 ≤ n ≤ 100.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1175. Prime Arrangements
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source