So is there any way to derive or calculate the number representation from btc address that coresponds to its private key hex?
No there is none.
Bitcoin addresses like P2PKH represent a hash and hashes are irreversible which means you can not compute the public key used to get that hash.
Even if you had the public key you still wouldn't be able to compute the private key because that is another irreversible function.
What you've seen in the program you found on the internet that uses the term "key range" is a very specific code written
to solve a puzzle where the creator of the puzzle intentionally created small keys in a much much smaller range than what should be used so that it can be brute forced by enthusiast who like to waste their computing power.