Search: id:A057632 Results 1-1 of 1 results found. %I A057632 %S A057632 3,491,2243,42299,274123,4310083,4310083,9065867,547580443,1885434347, %T A057632 8674616939,11312238283,19201563659,619849118491,4056100954547 %N A057632 Initial prime in first sequence of n primes congruent to 3 modulo 8. %H A057632 J. K. Andersen, Consecutive Congruent Primes. %e A057632 a(3) = 2243 because this number is the first in a sequence of 3 consecutive primes all of the form 8n + 3. %t A057632 NextPrime[ n_Integer ] := Module[ {k = n + 1}, While[ ! PrimeQ[ k ], k++ ]; Return[ k ] ]; PrevPrime[ n_Integer ] := Module[ {k = n - 1}, While[ ! PrimeQ[ k ], k-- ]; Return[ k ] ]; p = 0; Do[ a = Table[ -1, {n} ]; k = Max[ 1, p ]; While[ Union[ a ] != {3}, k = NextPrime[ k ]; a = Take[ AppendTo[ a, Mod[ k, 8 ] ], -n ] ]; p = NestList[ PrevPrime, k, n ]; Print[ p[ [ -2 ] ] ]; p = p[ [ -1 ] ], {n, 1, 9} ] a(9) > 305256000. %Y A057632 Sequence in context: A140015 A045616 A142801 this_sequence A024045 A160362 A155852 %Y A057632 Adjacent sequences: A057629 A057630 A057631 this_sequence A057633 A057634 A057635 %K A057632 nonn %O A057632 1,1 %A A057632 Robert G. Wilson v (rgwv(AT)rgwv.com), Oct 10 2000 %E A057632 More terms from Jens Kruse Andersen (jens.k.a(AT)get2net.dk), May 28 2006 Search completed in 0.001 seconds