# User Portlet

Paul Cleary
Discussions
In general if I want to see what's going on I put a strategic print statement in, you do have to be cautious in this regard particularly if as a result there are many items to print, it is sometimes wise to also include a Pause[1] after the print so...
James, Thanks for the link, it does run now. Hope you don't mind but I have taken the liberty of amending my previous code slightly that when run, 'a few ms' does what I think is essentially what your program is doing. pyths[x_Integer,...
Trevor, Thank you for your quick reply, your code is certainly faster without the subsets. here are a few results showing how much faster on the following length of list 1097 is x 39 3280 is x 78 9841 is x 2.68 29524 is x...
Do[Print["This is and odd number", " -> ", i], {y, 1, 2}] Is your second Do loop, the 'y' is just how many times you want it to loop, you can set that value from the first loop. You can use the values of {a1, a2, a3, a4 and m} in this loop. ...
Daniel, Thank you for your reply, and maybe in some future update a function would be available to do this, or even an extension to the existing function, just a thought.
Thank you Rohit and Richard, both solutions were ideal and solved my problem.
Gianluca, Thank you, that does indeed find another point, it is unfortunate that the point is co-linear with 2 of the lines and would be an invalid solution to my problem, but I am sure I can adapt. Thanks again.
Thank you Daniel, very interesting indeed, and I do like coincidences, however if you don't mind I am finding it difficult to use your code to alter the initial 4 numbers, as that is my intention and what part/s of the code would need to be changed...
It's interesting that FindInstance only finds 1 solution, when there are many solutions, these are just the first few 62616840 , {{y->62616840,z->62616840}} 62616826 , {{y->131915080,z->10050766},{y->131915080,z->52566060}} ...
Yes Daniel I realise it's not the way, a slight variation of the program above was written to solve a combination type problem, it was because it was behaving like it was testing the primality of numbers that made me think a little. It wasn't until...