Ic...sorry about that, It just didnt work on my XP box, but as I said great
on Solaris.

----- Original Message -----
From: "Nikola Janceski" <[EMAIL PROTECTED]>
To: "'Mark Goland'" <[EMAIL PROTECTED]>
Sent: Monday, September 16, 2002 1:38 PM
Subject: RE: dealing with Prime Numbers


> uh.. it's using the perl function grep() .. not the UNIX command grep.
> perldoc -f grep
>
>
> > -----Original Message-----
> > From: Mark Goland [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, September 16, 2002 1:30 PM
> > To: Paul Johnson
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: dealing with Prime Numbers
> >
> >
> > >perl -e 'print"@{[grep{(1x$_)!~/^(11+?)\1+$/}2..shift||1e2]}\n"' 1000
> >
> > works on Solaris, but no grep on windows. :O)
> >
> > ----- Original Message -----
> > From: "Paul Johnson" <[EMAIL PROTECTED]>
> > To: "Angerstein" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Monday, September 16, 2002 11:16 AM
> > Subject: Re: dealing with Prime Numbers
> >
> >
> > > On Mon, Sep 16, 2002 at 03:10:41PM +0200, Angerstein wrote:
> > >
> > > > Does anyone here have an idea of how to get all prime
> > numbers between 1
> > and
> > > > 1000?
> > >
> > > perl -e
> > 'print"@{[grep{(1x$_)!~/^(11+?)\1+$/}2..shift||1e2]}\n"' 1000
> > >
> > > Next!
> > >
> > > --
> > > Paul Johnson - [EMAIL PROTECTED]
> > > http://www.pjcj.net
> > >
> > > --
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> --------------------------------------------------------------------------
--
> --------------------
> The views and opinions expressed in this email message are the sender's
> own, and do not necessarily represent the views and opinions of Summit
> Systems Inc.
>
>



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to