OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
filter:= proc(p) isprime(p) and [msolve(x^4=3, p)] <> [] end proc:
select(filter, [seq(i, i=1..10^4, 8)]); # Robert Israel, May 07 2019
MATHEMATICA
okQ[p_] := PrimeQ[p] && Solve[x^4 == 3, x, Modulus -> p] != {};
Select[Range[1, 10000, 8], okQ] (* Jean-François Alcover, Feb 08 2023 *)
PROG
(PARI) forprime(p=1, 9999, p%8==1&&ispower(Mod(3, p), 4)&&print1(p", ")) \\ M. F. Hasler, Feb 18 2014
(PARI) is_A014755(p)={p%8==1&&ispower(Mod(3, p), 4)&&isprime(p)} \\ M. F. Hasler, Feb 18 2014
(Python)
from itertools import count, islice
from sympy import nextprime, is_nthpow_residue
def A014755_gen(startvalue=2): # generator of terms >= startvalue
p = max(nextprime(startvalue-1), 2)
while True:
if p&7==1 and is_nthpow_residue(3, 4, p) and is_nthpow_residue(-3, 4, p):
yield p
p = nextprime(p)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Offset changed from 0 to 1 by Bruno Berselli, Feb 20 2014
STATUS
approved