Landon Noll looking up Fremont Peak Observatory 0.8m telescope Leonid 2001 meteor squall count at Fremont Peak
custom search of Landon Noll's web sites

Curious prime numbers

[chongo's home] [Astronomy] [Mathematics] [Prime Numbers] [Programming] [Technology] [contacting Landon]

It can be argued that every positive integer n has an associated prime curio. The reverse can also be argued. Regardless, there are a number of curious numbers related to primes. We call such numbers ``Prime Curios!''.

Some of the curious numbers below have been submitted and entered into the ``Prime Curios!'' table under the name Noll.

Here are my own set of curious numbers related to primes:


repeat(v, n) = v{repeated n times}

For example:

repeat(309,4) = 309309309309

If can be shown that:

repeat(v, n) = v * (10(d*n)-1)/(10d-1)

where ''v'' is ''d'' digits in length.

You can use the calc program to compute the decimal values of the above curious numbers.

The following calc function may be used for the repeat(v, n) function:

 * repeat - depeat a set of digits
 * given:
 *      v  digit set to repeat
 *      n   repeat count
define repeat(v,n)
    local digcnt;

    digcnt = digits(v);

    return v * (10^(digcnt*n)-1) / (10^digcnt-1);

Some useful links

Mersenne primes

Definitions and theory

Source code

Misc prime links

© 1994-2022 Landon Curt Noll
chongo (was here) /\oo/\
$Revision: 8.1 $ $Date: 2022/07/08 00:06:05 $