Search the Community
Showing results for tags 'prime generator'.
Thanks to help from a programmer/coder friend (Mr J), internet posts of python prime number generators, and tips on Community Board I was able to modify a Series node to become a Prime Number Generator with range inputs. Sample attached as a v1. (Note - I am totally not educated or capable in python or other scripting. Dependent on others.) Any comments, improvements or alternatives welcome. Here is the prime generator python script from Scanftree.com http://scanftree.com/programs/python/python-program-to-print-all-prime-numbers-in-an-interval/ The Standard Series node uses a List [ ] output. Mr J and I could not make that work, so commented it out. He tried .append instead which apparently works well. See it in action in this thread: Prime Series Node.vwx