A181188 Primes at which the prime number race between the two prime classes with different sign of sin(prime(.)) changes leader.
31, 101, 167, 229, 269, 271, 307, 311, 313, 317, 331, 359, 439, 479, 487, 491, 691, 787, 797, 3739, 3761, 3821, 4019, 4093, 4153, 4231, 4241, 4243, 4253, 5839, 5843, 5857, 5861, 6367, 6469, 6473, 6553, 6637, 6653, 6673, 6679, 7121, 7219, 7297, 7307, 7309, 7351, 7561, 7583, 7603, 7607, 7681, 8311
Offset: 1
Keywords
Links
- John Derbyshire and Mikhail Gaichenkov, The sign of the sine of p
Programs
-
Maple
isA070753 := proc(n) is(sin(ithprime(n))<0) ; end proc: A070748 := proc(n) option remember; if isA070753(n) then -1 ; else 1; end if; end proc: A070748s := proc(n) add( A070748(i),i=1..n) ; end proc: for n from 1 to 10000 do if A070748s(n) >= 0 and A070748s(n+1) < 0 or A070748s(n) <0 and A070748s(n+1) >= 0 then printf("%d,",ithprime(n+1)) ; end if;end do:
-
PARI
s=0; p=0; while(1, p=nextprime(p+1); s+=(-1)^(p\Pi); if(s<=-7568,print1(p,", ")))
-
PARI
s=0;forprime(p=2,2000,s+=(-1)^(p\Pi);print1(s,", "))
Comments