Talk:Substring primes

From Rosetta Code

different than truncatable primes?

How does this differ from truncatable primes?--Nigel Galloway (talk) 15:07, 5 April 2021 (UTC)

It's a smaller list,   it includes substrings that are not truncatable.     -- Gerard Schildberger (talk) 15:39, 5 April 2021 (UTC)
See the OEIS entry:   A024770.
See the OEIS entry:   A024785.
See the OEIS entry:   A085823.

limit

Removed utterly pointless limit of 500. Find 'em all, it's the same output, and encourages a little more thought than for i=1 to 500. --Pete Lomax (talk) 08:54, 6 April 2021 (UTC)

By removing the task's limit, you're invalided all but "your" solution.   The whole point of Rosetta Code   (well, at least one of them)   is to compare how different computer programming languages (and programmers) solve the stated problem (the task as stated).   Significantly changing the (draft) task's requirements (and/or wording) makes comparing the solutions at this point, pointless.   At this time, all but one programming solution uses a limit of some kind.     -- Gerard Schildberger (talk) 10:26, 6 April 2021 (UTC)
They are not invalid at all, they all give the correct output, apart from the REXX entry which blatently lies about how many prime tests it performs (it's 26 btw, or 119 if you also count the digit-wise exclusions). Using a limit is a valid way to do it, just not a very smart one. I was only trying to make a rather pedestrian task into something slightly more interesting/challenging, optionally. If you want to change it to something like "This can be achieved by filtering all primes below 500 (there are 95 of them), but it can also be done by only checking 15 numbers." then I'll not complain. --Pete Lomax (talk) 13:34, 6 April 2021 (UTC)