Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9152001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:56:17+00:00 2026-06-17T11:56:17+00:00

Very large integers are often stored as variable-length arrays of digits in memory, as

  • 0

Very large integers are often stored as variable-length arrays of digits in memory, as opposed to a straightforward binary representation as is the case with most primitive ‘int’ or ‘long’ types, as in Java or C. With this in mind, I would be interested to know algorithm(s) that can compute:

  1. At what count an integer must reach before it becomes more efficient to store it as a BigInteger (or equivalent arbitrary-precision arithmetic construct) with a given radix for the integer’s digits;

  2. Which radix would be most efficient to store the digits of this large integer.

I have mentioned ‘efficiency’; by this, I mean I am mainly concerned with the amount of space such a BigInteger would consume, though I would also be interested to hear any comments on processing speed or time complexity.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:56:18+00:00Added an answer on June 17, 2026 at 11:56 am

    An integer should consume the least space if stored in a raw binary format (unless maybe it is a small integer and data type is way too wide for it – to store 1 in 128 bit long long). Storing differently does not save any memory and is used to make the work with such integers easier.

    If byte by byte, this translates into 256’ecimal radix – 256 possible values, as much as the byte can hold.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create and manipulate large arrays of (4 byte) integers in-memory. By
I'm trying to write this custom addition class for very large integers, bigger than
Possible Duplicate: Storing very large integers in MySQL Hello I am creating a browser
You’re given an array of N 64 bit integers. N may be very large.
Does anybody know of a way I can calculate very large integers in c#
I am trying to do modular exponentiation of integers with a very large modulus
I need to do a modulus operation on very large integers. The biggest integer
I am almost done with an algorithm that processes some very large integers (around
Fortran: There are two large arrays of integers, the goal is to find out
how to sort very large numbers like 03 10103538 2222 1233 6160 0142 03

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.