You are not logged in. Please login at to post your questions!


LUCKY2: lucky number range

how to store 10^1000 in c? not even unsigned long long can store it...plz help link text

asked 28 Jun '12, 19:22

devil_001's gravatar image

accept rate: 0%

edited 10 Jul '12, 11:15

admin's gravatar image

0★admin ♦♦

Sometimes you really need to work with big numbers, then you can use char[1000] or int[1000].

On the other hand if your plan is to iterate all these numbers , you have to realize, that if CPU can handle 10^9 operations in second, you will need 10^991 seconds to do that...


answered 29 Jun '12, 12:40

betlista's gravatar image

3★betlista ♦♦
accept rate: 11%

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 28 Jun '12, 19:22

question was seen: 1,523 times

last updated: 06 Apr '16, 12:49