Hello Math-Fun and SeqFan, I have the feeling this is (very) old hat... Anyway: http://www.cetteadressecomportecinquantesignes.com/PrimePath.htm Best, É.