JobsJob TrackerJob alerts

Oppo R&D · 9 questions

All 9Coding 9
  • Permutations of natural numbers with prime indices at primesCoding
  • Implement a stack using a queueCoding
  • Implement multiple inheritance in JavaCoding
  • Convert a tree into a doubly linked listCoding
  • Permutations preserving relative position of primesCoding
  • Count subarrays with sum less than or equal to KCoding
  • Sum of all possible Ar[i]/Ar[j]Coding
  • Shortest distance between any two nodes in directed graphCoding
  • Critical section variable value boundsCoding
← Oppo R&D questions
  1. Interview questions
  2. Oppo R&D
  3. Permutations of natural numbers with prime indices at primes
Coding

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

  • Implement multiple inheritance in Java
  • Convert a tree into a doubly linked list
  • Permutations preserving relative position of primes
  • Sum of all possible Ar[i]/Ar[j]
  • Shortest distance between any two nodes in directed graph
Implement a stack using a queue →

Collected from public candidate posts and coding forums. Updated Nov 2026.