[CSC 330] Questions about Integer Size
Andrew J. Pounds
pounds_aj at mercer.edu
Thu Sep 2 12:04:23 EDT 2021
Class -- one question I keep getting relates to the largest integer to
be input into your Goldbach weak conjecture algorithm. To make this
simple lets keep it to the maximum size of a signed integer in gcc on
cobra -- 2147483647. That should make it also work without too much
difficulty across all of the other programming languages we will be using.
I know that there are 105097566 prime numbers - and some of you are
focusing on the "worst possible base" of having a huge number as
input. My recommendation is to not do that. Get code working for
small cases and then you can focus on improving it for larger values.
--
Andrew J. Pounds, Ph.D. (pounds_aj at mercer.edu)
Professor of Chemistry and Computer Science
Director of the Computational Science Program
Mercer University, Macon, GA 31207 (478) 301-5627
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://theochem.mercer.edu/pipermail/csc330/attachments/20210902/f577069f/attachment.html>
More information about the csc330
mailing list