Skip to main content
3 events
when toggle format what by license comment
Oct 13, 2018 at 16:05 comment added Cris Luengo Thanks @Wolfie! It does look like it should be vectorizable, but I don’t immediately see how. Because the upper limit is different for each input, bsxfun would not work (or do lots of useless computation).
Oct 13, 2018 at 15:29 comment added Wolfie Great, comprehensive answer! I feel like the isprime function must be fully vectorisable, i.e. you should be able to bin off the candidates loop?
Apr 10, 2018 at 4:04 history answered Cris Luengo CC BY-SA 3.0