RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g)
07-01-2019, 12:49 PM (This post was last modified: 07-01-2019 01:05 PM by John Keith.)
Post: #9
 John Keith Senior Member Posts: 1,029 Joined: Dec 2013
RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g)
My simplistic RPL solution. 83 bytes, checksum # EBAAh. Optimized for speed rather than size. An input of 9 takes 1.19 seconds on my HP 50. An input of 99 takes 397 seconds, or 6.98 seconds on EMU48. The HP Prime could solve this almost instantly as the Prime has the 'ithprime' function.

Code:
 *Spoiler alert* \<< I\->R \-> n   \<< 2 2. n 2. *     FOR k DUP 1. k       START NEXTPRIME       NEXT 2.     STEP n 1. + \->LIST   \>> \>>
 « Next Oldest | Next Newest »

 Messages In This Thread RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Gerson W. Barbosa - 06-30-2019, 08:41 PM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Gerson W. Barbosa - 06-30-2019, 08:53 PM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Valentin Albillo - 06-30-2019, 09:10 PM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Gerson W. Barbosa - 06-30-2019, 11:05 PM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Thomas Okken - 06-30-2019, 11:57 PM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Gerson W. Barbosa - 07-01-2019, 12:28 AM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Gerson W. Barbosa - 07-01-2019, 04:49 AM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Didier Lachieze - 07-01-2019, 11:13 PM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Gerson W. Barbosa - 07-02-2019, 12:07 AM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Paul Dale - 07-01-2019, 12:25 PM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Didier Lachieze - 07-01-2019, 01:44 PM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - John Keith - 07-01-2019 12:49 PM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Claudio L. - 07-01-2019, 01:52 PM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - John Keith - 07-01-2019, 05:05 PM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Gerson W. Barbosa - 07-01-2019, 05:20 PM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Claudio L. - 07-01-2019, 09:45 PM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Paul Dale - 07-02-2019, 12:40 AM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - DavidM - 07-02-2019, 02:21 PM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - DavidM - 07-03-2019, 05:05 AM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Gerson W. Barbosa - 07-03-2019, 08:00 PM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Claudio L. - 07-03-2019, 10:33 PM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Gerson W. Barbosa - 07-04-2019, 03:17 AM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - DavidM - 07-04-2019, 08:21 PM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Claudio L. - 07-05-2019, 02:45 AM RE: RPL mini-challenge - Triangle of Primes (HP-49G/G+,50g) - Paul Dale - 07-05-2019, 09:47 AM

User(s) browsing this thread: 1 Guest(s)