This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A273236 #25 May 28 2016 07:19:10 %S A273236 563047,1186631,1205647,1421647,1871503,2058047,2615047,2739103, %T A273236 2795047,3703463,3743647,4106447,4723847,4748047,4758847,5744447, %U A273236 6991847,8376847,9951047,10014847,12214303,12773447,14161183,14402447,15232031,15630847 %N A273236 Primes p such that p + k is the sum of two nonzero squares in exactly k ways for all k = 1, 2, 3. %C A273236 All terms of this sequence are the sum of 4 but no fewer nonzero squares. %e A273236 The prime 563047 is a term because 563048 = 218^2 + 718^2, 563049 = 165^2 + 732^2 = 357^2 + 660^2 and 563050 = 71^2 + 747^2 = 141^2 + 737^2 = 505^2 + 555^2. %o A273236 (PARI) is(n, k) = {nb = 0; lim = sqrtint(n); for (x=1, lim, if ((n-x^2 >= x^2) && issquare(n-x^2), nb++); ); nb == k; } %o A273236 isok(n) = isprime(n) && is(n+1, 1) && is(n+2, 2) && is(n+3, 3); %Y A273236 Cf. A025284, A025285, A025286, A273318. %K A273236 nonn %O A273236 1,1 %A A273236 _Altug Alkan_, May 26 2016