View Single Post
Old 2020-10-23, 00:39   #3
Dec 2017

24010 Posts

Originally Posted by paulunderwood View Post
Learn to program. Get yourself an elementary book on Python.

I do not know Python. It does have set membership and arrays. I guess Python, like may other languages requires you to open the file and the loop over the stream until the end of the file and then close it. So you could open the file and read in the vector. Whether you can take a "%" over a vector I am not sure.

Somebody else who is knowledgeable about this language will jump in and put you right.
Thanks Paul

I think it is possible I'm just worried about speed, if it does it in a flash then I think its worth pursuing. I can imagine the text file could be very large tho yet if you can test large digit primes and say one inputs an 8 digit prime to test and then a factor comes back in a flash then you can move on to another test.
ONeil is offline