What is the best BASIC Pocket Computer
|
04-16-2014, 08:23 PM
Post: #74
|
|||
|
|||
RE: What is the best BASIC Pocket Computer
(04-16-2014 12:47 AM)Dave Britten Wrote: Here you go, prime factors in GW-BASIC. I haven't done any real performance tuning, apart from selecting an algorithm that's more efficient than "2 plus all the odd numbers". OK there where only minor changes to the code necessary. Deleted line 5, as UBASIC calculates long variables with a size of 542 words (whatever that is ) and timing (line 15 and 920) has a different syntax. Code: 10 input "X=";X Your example of 167699497 is calculated in about 2.4 seconds Günter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)