Re: [Jprogramming] Truncating primes

2022-11-21 Thread Raul Miller
For this, I think I would have gone with: selPrime=: #~ 1&p: seed=: selPrime digits=: 1+i.9 step=: selPrime@,@:(,&.(10x&#.inv)/&>)@{@; digits&step&.>^:a: , wrote: > > based on Raul's rosettacode link, but building an expaning list of left > truncable primes, such that further search i

Re: [Jprogramming] Truncating primes

2022-11-21 Thread 'Pascal Jasmin' via Programming
props for using { catalogue and managing a &. application in your step function. a design principle I was aiming for is a big strength of J.  What I call a "perfect function" defined as iterative form where output is of consistent shape/meaning as input, and where ^: can be used "separately" to

[Jprogramming] Report of J Wiki Meeting of November 17, 2022

2022-11-21 Thread 'robert therriault' via Programming
Present: Art Anger, Devon McCormick, Raul Miller, and Bob Therriault 1) We looked at Art's index to the Essays which now includes difficulty levels. https://code.jsoftware.com/wiki/Anger/Essays_Index Difficulty was assigned subjectively and might be adjusted by other's input over time. Then a d