WC 6.1 A Special Number

I want a list of special numbers between a given range. The property of these numbers is that the absolute difference between the sum of the digits at the odd and even place should be a prime number. Give the quantity of such numbers present in the range of 50 to 1000000.

For eg: 214365 is such a number. (2+4+6)-(1+3+5)=3 which is a prime number.

This challenge is worth 60 points.

You must be logged in to submit a solution

View ranklist for this challenge
About scoring and submission

Contact Us

Krish Shah : 9323115454

Kaustubh Khavnekar : 9769408039

Privacy Policy