[seqfan] Re: Mma code snippets in some prime modulo sequences

Ray Chandler rayjchandler at sbcglobal.net
Wed Apr 28 00:07:43 CEST 2010


I agree with Tony, code is broken - but if you remove extra "[" between Position and Prime and remove <space> between
Prime and Q, the code functions returning correct values from 227 to 21017, unfornuately omitting the first term 17.
Tony's code is much more to the point and correct.
Ray

> 
> >Do A140842, A140843 etc contain valid Mathematica code?
> >Someone having actually run the code would probably have 
> submitted more 
> >terms....
> >I don't have Mma and cannot judge that sort of thing.
> 
> I looked at A140842 and found the code is broken.  Better code is:
> 
> Select[17 + 210 Range[0, 100], PrimeQ]
> 
> Tony





More information about the SeqFan mailing list