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.

A171570 Triangular numbers T such that T+2 is a prime.

This page as a plain text file.
%I A171570 #8 Apr 20 2023 07:20:16
%S A171570 1,3,15,21,45,105,171,231,351,465,561,741,861,1275,1431,1485,2211,
%T A171570 2415,2775,3081,3321,4005,4371,5151,7875,8385,10731,11175,11781,13041,
%U A171570 13695,14535,15051,15225,17205,17391,17955,18915,21321,22155,23871,24531
%N A171570 Triangular numbers T such that T+2 is a prime.
%H A171570 Harvey P. Dale, <a href="/A171570/b171570.txt">Table of n, a(n) for n = 1..1000</a>
%e A171570 1+2=3, 3+2=5, 15+2=17, ..
%t A171570 Select[s=0;Table[n*(n+1)/2,{n,6!}],PrimeQ[ #+2]&]
%t A171570 Select[Accumulate[Range[300]],PrimeQ[#+2]&] (* _Harvey P. Dale_, Jun 27 2017 *)
%Y A171570 Cf. A000217, A129545, A129752, A171569.
%K A171570 nonn
%O A171570 1,2
%A A171570 _Vladimir Joseph Stephan Orlovsky_, Dec 11 2009