A B C D E F G H I J K L M N O P R S T U V W Y Z

New Philadelphia Book Publisher Highlights Local Talent
Book and Publishing News from Publishers Newswire(tm)

Looking for Child to be on Cover of a New Book, 'The Model Child'
PHILADELPHIA, Pa. -- The Philadelphia literary world will celebrate the launch of two new players today, April 10th: Kay Square Press, a new publishing company focused on Philadelphia-area artists, their stories, and their art; and Kay Square's first release, 'With the Rich and Mighty: Emlen Etting of Philadelphia' (ISBN: 978-0-9815129-0-7), a critical biography by Kenneth C. Kaleta.

FlatSigned Press Alleges Don Imus Remarks Damage Legacy of President Gerald R. Ford
NEW YORK, N.Y. -- Nathan Yungerberg, an accomplished model scout and professional child photographer is launching a nation-wide casting call to find the cover model for his highly anticipated book release, 'The Model Child: A Parents Guide to the Child Modeling Industry' (ISBN: 978-0-9817018-0-6).


Books: The First 100,000 Prime Numbers

U >> Unknown >> The First 100,000 Prime NumbersThe First 100,000 Prime Numbers



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");
if (!(number % 2)) number++;
if (number==1) number=3;
do
{
if (isprime(number)) printf("%d\n",number);
number+=2;
}while (1) ;
}

isprime(int thenumber)
{
int isitprime=1,loop;
for(loop=3 ; (isitprime) && (loop<(sqrt(thenumber)+1)) ; loop+=2)
isitprime = (thenumber % loop);
return(isitprime);
}


***Program Ends***