Sir, how to take input from user as large as 2^64 and the perform its calculation.
Please help me.
cse.avinash
-1
Junior Poster
Recommended Answers
Jump to PostPlease clarify what you mean. Are you talking about numeric data of 2^64, or data set sizes up to 2^64 bytes? If the first, you either need to use 64-bit data types (assuming these are unsigned integer values), which in modern C/C++ is an "unsigned long long" data type; however, …
Jump to PostOk. Now it is becoming clear! You have a project to determine prime numbers up to 64-bits in size. That is clearer. Start with a sieve of eratosthenes to build a reasonable size array of about 10,000 elements. On todays computers that's a few nano seconds. Then you develop a …
All 5 Replies
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
cse.avinash
-1
Junior Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
cse.avinash
-1
Junior Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.