Classics Archive - Classic Books Online
     Home  |   Search  |   Download eBooks  |   FAQs  |   Contact  |   Resources
 

The First 100000 Prime Numbers - (Math Constants)

Download: The First 100000 Prime Numbers - (Math Constants)


First Page | Previous Page | Page 1 of 3623 | Next Page | Last Page




This file contains the first 100,000 primes as well as the C program
(frightfully primitive as it may be) which is used to calculate them.
They were calculated at using a Cray X-MP.



***Program Begins***



#include "stdio.h"
#include "math.h"

int number;

main()
{
        printf("Which number do you wish to start the test with? ");
        scanf("%d",&number);
        printf("\n");
        printf("I'm starting with number %d\n",number);
        if (number<1) number=1;
        if (number==1) printf("1\n");
        if (number<=2) printf("2\n");
First Page | Previous Page | Page 1 of 3623 | Next Page | Last Page