MathGroup Archive 1996

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

Search the Archive

Re: composites

  • To: mathgroup at smc.vnet.net
  • Subject: [mg3398] Re: [mg3362] composites
  • From: Allan Hayes <hay at haystack.demon.co.uk>
  • Date: Sun, 3 Mar 1996 02:26:00 -0500
  • Sender: owner-wri-mathgroup at wolfram.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

==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Linear Solve
  • Next by Date: Re: composites
  • Previous by thread: composites
  • Next by thread: Re: composites