(MAGMAMagma) [p: p in PrimesUpTo(5000) | not exists{x: x in ResidueClassRing(p) | x^144 eq 2} and exists{x: x in ResidueClassRing(p) | x^12 eq 2}]; // Vincenzo Librandi, Sep 21 2012
(MAGMAMagma) [p: p in PrimesUpTo(5000) | not exists{x: x in ResidueClassRing(p) | x^144 eq 2} and exists{x: x in ResidueClassRing(p) | x^12 eq 2}]; // Vincenzo Librandi, Sep 21 2012
reviewed
approved
proposed
reviewed
editing
proposed
(PARI)
ok(p, r, k1, k2)={
if ( Mod(r, p)^((p-1)/gcd(k1, p-1))!=1, return(0) );
if ( Mod(r, p)^((p-1)/gcd(k2, p-1))==1, return(0) );
return(1);
}
forprime(p=2, 10^5, if (ok(p, 2, 12, 12^2), print1(p, ", ")));
/* Joerg Arndt, Sep 21 2012 */
proposed
editing
editing
proposed
(MAGMA) [p: p in PrimesUpTo(5000) | not exists{x: x in ResidueClassRing(p) | x^144 eq 2} and exists{x: x in ResidueClassRing(p) | x^12 eq 2}]; // Vincenzo Librandi, Sep 21 2012
nonn,easy
approved
editing
_Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), _, Apr 29 2002
0,1,1
nonn,new
nonn
(PARI) forprime(p=2, 5000, x=0; while(x<p&&x^12%p!=2%p, x++); if(x<p, y=0; while(y<p&&y^(12^2)%p!=2%p, y++); if(y==p, print1(p, ", "))))
nonn,new
nonn