0

You are given integers and You are required to find the count of all the PR numbers in the range L to R inclusively. PR number are the numbers which satisfy following properties: -

:- No pair of adjacent digits are coprime i.e. adjacent digits in a PR number will not be coprime to each other.

:- PR number is divisible by all the single digit prime numbers which occur as a digit in the PR number.

Santanu
  • 893
  • 3
  • 10
  • 24

0 Answers0