Using sage, how would I be able to check whether a given number is a general mersenne prime, or if possible any other special primes?

In particular, looking to check for special primes `p`

such that modulo `p`

is easy to calculate

1 | initial version |

Using sage, how would I be able to check whether a given number is a general mersenne prime, or if possible any other special primes?

In particular, looking to check for special primes `p`

such that modulo `p`

is easy to calculate

2 | retagged |

Using sage, how would I be able to check whether a given number is a general mersenne prime, or if possible any other special primes?

In particular, looking to check for special primes `p`

such that modulo `p`

is easy to calculate

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.