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.
In reply to Re^3: To Findout Prime number
by BrowserUk
in thread To Findout Prime number
by babug_prg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |