Need program for operating on 200-digited numbers

  • Context: High School 
  • Thread starter Thread starter jobsism
  • Start date Start date
  • Tags Tags
    Numbers Program
Click For Summary

Discussion Overview

The discussion centers around the need for software capable of performing operations on very large numbers, specifically those with up to 200 digits. Participants explore various software options, programming languages, and approaches for handling large integers, particularly in the context of the integer factorization problem.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant requests recommendations for software packages that can handle 200-digit numbers, expressing a lack of programming knowledge.
  • Another participant provides a link to a Wikipedia page listing arbitrary-precision arithmetic software.
  • A suggestion is made to use ARIBAS as a recommended software for large number operations.
  • One participant advises testing programs with smaller numbers first, providing a link to a site that can handle such tests but cautions against using 200-digit numbers directly.
  • A participant mentions that the Groovy programming language can manage Big Integers and provides a sample script demonstrating its capabilities.
  • Another participant highlights Python's built-in ability to handle arbitrary digits, showcasing an example of calculating a large power.

Areas of Agreement / Disagreement

Participants present various software and programming language options without reaching a consensus on a single best solution. Multiple views on the best approach to handle large numbers remain, reflecting differing preferences and experiences.

Contextual Notes

Some participants emphasize the importance of testing with smaller numbers before scaling up, indicating potential limitations in handling very large integers efficiently. There is also a note on the performance differences between arbitrary-precision handling and traditional data types.

Who May Find This Useful

This discussion may be useful for individuals interested in computational number theory, programming with large integers, or those seeking software solutions for mathematical operations involving large numbers.

jobsism
Messages
115
Reaction score
0
Hey guys! I desperately need a software for performing operations on large numbers (some 200-digits), and as I have no knowledge of programming, I think a complete software package is what I'm looking for.

I think I am onto something regarding the integer factorization problem, but I have no means of checking it for large numbers! It would be of great help to me, if you could list out some software packages (I have no idea about any of them!). Please provide links as well! Thanks :D
 
Physics news on Phys.org
I think you should test your program with smaller numbers ( like a 50 digit number ) before you move to bigger number. Here's a site which you can use to test the results from your own program:

http://www.alpertron.com.ar/ECM.HTM

It's fast and already tested. But I would not feed it a 200 digit number though.
 
you could use the groovy language which can handle Big Integers of arbitrary digit size:

Here's and example script for powers of two:

BigInteger ans = 1g
1000.times { ans=ans*2; println ans }


I run it in the GroovyConsole app and it generates some pretty huge numbers with the last ans being 303 digits long.

Groovy is a scripting lang that extends java with features some wished were in java.

Be aware that handling huge numbers is considerably slower than traditional computer datatypes like int and long or float and double.
 
Python can handle arbitrary digits off-the-shelf.

Code:
>>> 10**300
1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000L
>>>
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 12 ·
Replies
12
Views
3K