Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: To Findout Prime number

by BrowserUk (Pope)
on Feb 08, 2008 at 15:20 UTC ( #666986=note: print w/ replies, xml ) Need Help??


in reply to Re^2: To Findout Prime number
in thread To Findout Prime number

The main advamtage of vec over substr is going 8 x higher for any given amount of ram.

Of course, you can go twice as high and a little quicker, with either, by not wasting space for even numbers.

And once you start saving space, you can go as far as 8 bits for every 30 numbers and higher still.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re^3: To Findout Prime number

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://666986]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2015-07-02 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (47 votes), past polls