WWGD

Science Advisor

Gold Member

- 5,049

- 2,269

## Summary:

- We are given a number as a power. How to find the kth digit of a power.

## Main Question or Discussion Point

Hi,

In another forum someone asked how to find the kth digit of a large prime given in the form ##2^t-1 ## , where t is a 6-digit (decimal) number. I was thinking maybe using some SQL string function , though I am not sure if input strings must be entered explicitly. Can anyone think of some other way?

In another forum someone asked how to find the kth digit of a large prime given in the form ##2^t-1 ## , where t is a 6-digit (decimal) number. I was thinking maybe using some SQL string function , though I am not sure if input strings must be entered explicitly. Can anyone think of some other way?

Last edited by a moderator: