MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: composites

  • Subject: [mg3398] Re: [mg3362] composites
  • From: hay at haystack.demon.co.uk (Allan Hayes)
  • Date: 3 Mar 1996 11:07:32 -0600
  • Approved: usenet@wri.com
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: Wolfram Research, Inc.
  • Sender: daemon at wri.com


Will Self <wself at viking.emcmt.edu>
in[mg3362] composites
asks
>In the sequence of counting numbers, what is the first stretch of
>one hundred composite numbers?

Will:

n=1;p=1;While[p+101>(p=Prime[++n])];range[Prime[n-1]+1, p-1]

	range[370262, 370372]

Allan Hayes,
hay at haystack.demon.co.uk


  • Prev by Date: Re: composites
  • Next by Date: output_to_input
  • Previous by thread: Re: composites
  • Next by thread: Re: composites