You are not logged in.
J.M. is a very talented guy and a good EM too.
What is 'the diamond effect'?
Put a lump coal under a million tons of pressure for a thosand years and you have a diamond. - Superman
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Maybe you're a rough diamond?
J.M. is a very talented guy and a good EM too.
His code backs that up!.
I tried his and George's codes on a random 100,000-digit number that has a solution. JM's took approx 14.3 seconds to solve it, and George's approx 767 seconds. So their speed comparison has changed dramatically with this much larger number!
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
Where did you find this 100000 digit number?
Rough diamond? Nope, I am a bumpkin.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
With n = RandomInteger[10^100000] in the first line of code.
Do you want to see it, and the solution?
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
You actually entered a command like that? I am flabbergasted. Wunderbar!
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
It's the same idea as my post #19, where I included it in the first line of your code that I changed.
This time I made it a bit bigger...and I'm not sure if I should try it on your code!
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
A bit bigger you say? That is enormous. I have to agree about not trying it on mine.
Do you want to see it, and the solution?
Would that not be a huge post? Do you have the exact n, I could run it myself?
Need a bit of rest, see you soon.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Here is a link to the number, and here is a link to the solution.
Both in copyable text...and there's also an option to download the text file.
Btw, in JM's code the number variable is n, and in George's it's m.
Rest well! I may have gone to bed when you return. >yawn<
Last edited by phrontister (2017-02-23 00:27:11)
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
Hi;
I am unable to access either of those links.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Hmmm...that's odd! OneDrive has always worked for me before.
Try these links. They're on Filedropper, which I've never used before. It works when I tested it, but you have to complete a captcha for each file...which I didn't know before I uploaded them.
What file host do you use for file sharing on forums?
Edit: The above links no longer seem to work, so I went back to post #33 and changed the links to ones that work...at least for now (for me)!
Last edited by phrontister (2017-02-23 00:34:19)
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
I do not remember since I only used it once.
Problem and solution check out. Took about 30 seconds on my machine.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
That's using JM's, I guess. Have you tried it on George's yet?
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
Heck no! I will try it on mine first. See you in a century or two...
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
...or three!!
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
That is being cynical.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Well, I don't have your intimate knowledge of your machine.
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
I stopped having intimate knowledge of my machine in the early 90's. That is when I stopped programming in ASM.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
The early 90's...I remember them well! I couldn't even spell ASM back then! But that wasn't a requirement of ASM, was it? Unless you documented your code with rems to make sense of the blur!!
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
I remember them too. I remember writing for Wayne Greene who passed away in 2013. I was in the whose who back then and there were few ASM coders. But I ran into an ugly, weasely reptile and he sapped the ambition right out of me. Left the business and became a slug.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
A happy (happier, even) slug, I hope.
I have to go...catch you later.
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
Okay, see you later. I am going to eat some yogurt and watch a few Walking Deads.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Hi Bobby;
Getting in the mood early for Halloween?
Changing the subject...that picture of you in post #28 must have been taken quite some time before your avatar photo!!
The resemblance is still there, though - the distinctive, flared-out ears, the prominent mouth, the piercing gaze, the calm, unruffled look...
But that magnificent Rapunzel ponytail's gone, and the hat would be much more useful now than it was back then!
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
Halloween nope, I watch them to learn what not to do in a zombie apocalypse.
I do not really look like that although I do act like that fellow. There are pictures of me now on this forum but people do not believe they are not photoshopped ( is that even a word? ).
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Very prudent, much more so than I am.
photoshopped: transitive, Internet To digitally edit or alter a picture or photograph.
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
I thought I had maybe come up with a new word that I could coin , become famous, mix with the celebrities and marry what is left of Angelina Jolie.
Alas, you destroyed that dream.
Very prudent, much more so than I am.
In what sense?
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline