YouTube needs to stop forcing me to look at What To Watch. Take me to my subs already. #youtubehonestyhour — Derrik (@MrGentoo) May 10, 2015. 5) Collabs are all about the numbers now. You don’t have to intro collab as “good friend” we know it’s just about views, ya’ll don’t even like each other #. हम हमारे channel पर सभी consect पर चर्चा करते हैं, जो की Harsh के साथ होती हैं! Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube. Provided to YouTube by Poclanos (주식회사 포크라노스)Help 10cm4.0℗ 2017 Magic Strawberry SoundReleased on: 2017-09-01Producer: 10cmProducer: 이요한 Lee YohanComposer.


Youtube Supportharshu Tricks

HARSHAD - Devlali Numbers


Devlali numbers were an important coinage by Indian recreational mathemtician D. R. Kaprekar.

Youtube Supportharshu Tricks Roblox

For any positive integer n, define d(n) as the sum of n and the digits of n. Eg, d(199) = 199 + 1 + 9 + 9 = 218.

For a positive number m, if there exists no positive number r such that d(r) = m, then m is a Devlali number. First few Devlali numbers are 1, 3, 5, 7, ... so on.

A prime number falling in this family is called a Devlali Prime. First few Devlali Primes are 3, 5, 7, ... so on.

Input

First line contains integer Q

Next Q lines contain two integers A and B

Output

Youtube Supportharshu Tricks Games

print Q lines, each listing number of Devlali Primes in range [A,B] (both inclusive)

Limits

1 <= Q <= 100000

0 <= A <= B <= 1000000

Example

comments

Youtube Supportharshu Tricks For Beginners

Added by:Piyush Kumar
Date:2012-09-21
Time limit:2.175s-5.438s
Source limit:5000B
Memory limit:1536MB
Cluster:Cube (Intel G860)
Languages:All

Youtube Supportharshu Tricks Youtube


Coments are closed
Scroll to top