Program to find Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1.

Bob Gailer bgailer at gmail.com
Tue Oct 2 17:48:38 EDT 2018


On Oct 2, 2018 4:59 PM, "Musatov" <tomusatov at gmail.com> wrote:
>
>  Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1.
>         DATA
>
> 31, 71, 73, 137, 211, 311, 419, 421, 647, 877, 1117, 1487, 1979, 2447,
3079, 3547, 4027, 7307, 7309, 12211, 14243, 18911, 18913, 23557, 25439,
28729, 36683, 37831, 46853, 50411, 53129, 55457, 57367, 60251, 67339,
70489, 74797, 89669, 98909, 98911
>
>         EXAMPLE
>
> 7*5 - 3 - 1 = 31
>
> 11*7 - 5 - 1 = 71
>
> 11*7 - 5 + 1 = 73
>
> 13*11 - 7 + 1 = 137
>
> Can someone put this in a Python program and post?

It is our policy to not write code at others requests. We are glad to help
if you've started writing a program and are stuck.

Out of curiosity where does this request come from?

If you want to hire one of us to write the program, in other words pay us
for our time and expertise, that's a different matter. We would be happy to
comply.
> --
> https://mail.python.org/mailman/listinfo/python-list



More information about the Python-list mailing list