POV-Ray : Newsgroups : povray.off-topic : An unusual prime number algorithm : Re: An unusual prime number algorithm Server Time
14 Nov 2024 20:28:15 EST (-0500)
  Re: An unusual prime number algorithm  
From: andrel
Date: 3 Dec 2007 06:14:11
Message: <4753E504.8090708@hotmail.com>
Warp wrote:
> 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.
> 
but take care that when concatenating the strings you set all fields 
below that number to # first.


Post a reply to this message

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