POV-Ray : Newsgroups : povray.off-topic : An unusual prime number algorithm : Re: An unusual prime number algorithm Server Time
11 Oct 2024 05:22:05 EDT (-0400)
  Re: An unusual prime number algorithm  
From: Warp
Date: 2 Dec 2007 18:27:10
Message: <47533f4e@news.povray.org>
Orchid XP v7 <voi### [at] devnull> wrote:
> >   In the end you end up with:
> > 
> > -!!#!#!###!#!###!#!###!#####!#!#####!###!#!###!#####!#####!#!#####!###

> Well, then you'd need more bits per number.

  Not really, because the end result only has '#' and '!'. You simply
have to keep an index to the next untested value in a variable.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.