[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: ANN: the first million prime numbers in XML format

  • From: Kurt Cagle <kurt.cagle@gmail.com>
  • To: "Costello, Roger L." <costello@mitre.org>
  • Date: Thu, 5 Jul 2012 16:17:50 -0400

Re:  ANN: the first million prime numbers in XML format
Roger,

These are definitely cool! I may actually have a use for them.

Kurt Cagle
Invited Expert, XForms Working Group, W3C
Managing Editor, XMLToday.org




On Thu, Jul 5, 2012 at 4:07 PM, Costello, Roger L. <costello@mitre.org> wrote:
Hi Folks,

I often wondered why mathematics books seem so focused on prime numbers.

Now I know.

Recall what a prime number is: an integer larger than 1 is said to be prime if it cannot be written as a product of two smaller positive integers.

Here are some prime numbers: 2, 3, 5, 7, 11, 13.

A number that is not prime is said to be composite. Here are some composite numbers: 4, 6, 8, 9, 10, 12.

So every positive integer is either a prime or a composite.

It can be proven that every composite number can be decomposed into a product of primes.

Further, there is only one way to factorize a composite number into primes. This is called the unique factorization theorem.

So, the building blocks of every integer beyond 1 are primes. In this sense the primes from mathematics correspond to the atoms from chemistry and deserve the same kind of intense scrutiny.

Neat!

So I created two XML documents, collectively containing the first million prime numbers.

The first XML document contains the first 500,000 primes and the second XML document contains the 500,001 to 1,000,000 prime numbers:

http://www.xfront.com/first-500000-primes.xml
http://www.xfront.com/second-500000-primes.xml

Be patient. They are large files (10 MB and 11 MB, respectively)

/Roger

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.