Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


really long number

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,50526
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> really long number
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 really long number - 8/9/2007 6:02:00 AM   
  RobertParker

 

Posts: 24
Score: 2
Joined: 6/8/2007
Status: offline
I've been really bored at work, so I've been trying to solve a bunch of the problems on http://projecteuler.net/ with vbscript.  I've already gotten 9 of them done, but I need to take the prime factorization of this number: 317,584,931,803

A long in vbscript maxes out at 2 Billion, and this is 317 Billion.  I already have the algorithm written, and it works correctly.
 
 
Post #: 1
 
 RE: really long number - 8/9/2007 6:09:22 AM   
  ebgreen


Posts: 5035
Score: 31
Joined: 7/12/2005
Status: online
I have done a lot of those problems (I haven't done any in a long time so my account is probably inactive) regardless, VBScript is simply not capable of doing a lot of those problems do to limitations like the one that you have already found. I did most of my solutions in Python although last week I started learning Lisp so I may stsrt using it.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to RobertParker)
 
 
Post #: 2
 
 RE: really long number - 8/9/2007 6:46:47 AM   
  RobertParker

 

Posts: 24
Score: 2
Joined: 6/8/2007
Status: offline
I'm beginning to notice that too.  I did 9 of them, and now I've hit limitations in vbScript in the last 4 of tried to do.

(in reply to ebgreen)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> really long number Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts