@ranges = ( [ $myNum-100, $myNum+100 ] ); $primes = prime( @ranges );
But this gives me ranges from -100 to +100 of $myNum. And I would have to parse through and check to see the 2 primenumbers smaller and greater than $myNum. Is there any nicer way?
Thanks
In reply to Re^2: a close prime number
by Anonymous Monk
in thread a close prime number
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |