tag:blogger.com,1999:blog-534212227857180.post4759236126525858598..comments2022-07-06T18:27:22.819+10:00Comments on Math Nuggets: Prime Factors CalculatorUnknownnoreply@blogger.comBlogger7125tag:blogger.com,1999:blog-534212227857180.post-5677311096717235062011-12-22T20:12:14.604+11:002011-12-22T20:12:14.604+11:00I like trying phone numbers.I like trying phone numbers.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-534212227857180.post-80226794636665898332011-10-12T07:39:59.312+11:002011-10-12T07:39:59.312+11:00If 333667 is not prime, what are its divisors?If 333667 is not prime, what are its divisors?Paulhttps://www.blogger.com/profile/08126561393839340751noreply@blogger.comtag:blogger.com,1999:blog-534212227857180.post-14571656407114272702011-10-11T23:29:24.927+11:002011-10-11T23:29:24.927+11:00for 111111111 3,3,37,333667
but 333667 is NOT pri...for 111111111 3,3,37,333667<br /><br />but 333667 is NOT prime!!Abhilash Sahuhttps://www.blogger.com/profile/15118515285363405194noreply@blogger.comtag:blogger.com,1999:blog-534212227857180.post-50625415609234794612009-09-12T20:24:14.581+10:002009-09-12T20:24:14.581+10:00> If you find any interesting patterns with thi...> If you find any interesting patterns with this prime factors calculator, let me know.<br /><br />If I found a pattern in primes, I'd tell you right after my Nobel prize :PAndreahttp://www.tankmiche.com/noreply@blogger.comtag:blogger.com,1999:blog-534212227857180.post-6538404734130369272009-06-16T19:45:39.589+10:002009-06-16T19:45:39.589+10:00Even without the Math.abs() and parseInt() the cal...Even without the Math.abs() and parseInt() the calculation still fails for 2**53 + 1. So I've put in a limit with a maximum number of 2**53 - 1.<br /><br />I would have made 2**53 the maximum, as it factors this ok, but the '>' comparison in Javascipt can't tell the difference between 2*53 and 2*53 + 1.<br /><br />(2**53 + 1) > (2**53) returns false in Javascript!Paulhttps://www.blogger.com/profile/08126561393839340751noreply@blogger.comtag:blogger.com,1999:blog-534212227857180.post-59714230611203549152009-06-11T11:34:00.829+10:002009-06-11T11:34:00.829+10:00Hmmmm. When I put in 1569079426997587189 it gives ...Hmmmm. When I put in 1569079426997587189 it gives me the factors for 1569079426997587200.<br /><br />With a bit of trial an error I've found that it seems to work for numbers up to 2**53 = 9007199254740992<br /><br />The limitation is either with Javascript's Math.abs() or parseInt() function or both. This is changing the input number before it is factorized. I'll have a look when I Paulhttps://www.blogger.com/profile/08126561393839340751noreply@blogger.comtag:blogger.com,1999:blog-534212227857180.post-39660970192728335352009-06-11T10:49:51.508+10:002009-06-11T10:49:51.508+10:00nice toy for very small numbers =)
try this number...nice toy for very small numbers =)<br />try this number: 2287930740466177.<br />You'll get correct answer, but you have to wait. Now try this one: 1569079426997587189. The answer of your script is incorrect.Anonymousnoreply@blogger.com