cp's OEIS Frontend

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.

A153050 Six-digit squares that are concatenation of two 3-digit primes.

This page as a plain text file.
%I A153050 #8 Nov 21 2013 12:49:29
%S A153050 101761,113569,127449,131769,137641,149769,167281,199809,349281,
%T A153050 439569,463761,491401,641601,683929,797449
%N A153050 Six-digit squares that are concatenation of two 3-digit primes.
%C A153050 a(n)=(A153048(n))^2.
%C A153050 There are exactly 15 such numbers.
%t A153050 c = 0; t = 1000; re = Sort[Reap[Do[If[PrimeQ[p], Do[If[PrimeQ[q], r = p*t + q; s = Sqrt[r]; If[s == Floor[s], c++; Sow[r]]], {q, 101, 999, 2}]], {p, 101, 999, 2}]][[2, 1]]]
%t A153050 concatpQ[n_]:=Module[{idn=IntegerDigits[n],a,b},a=FromDigits[Take[idn,3]];b=FromDigits[Take[idn,-3]];IntegerLength[a]==IntegerLength[b]==3 && PrimeQ[a]&&PrimeQ[b]]; Select[Range[316,1000]^2,concatpQ] (* _Harvey P. Dale_, Mar 09 2012 *)
%Y A153050 Cf. A153048.
%K A153050 fini,full,nonn,base
%O A153050 1,1
%A A153050 _Zak Seidov_, Dec 17 2008