Hello,

wrong order of sets in my formula:

use [d] [
    d: [2 3 5 7]
    prime?: function [p] [c s l] [
        l: to integer! square-root p
        foreach v d [
            if p // v = 0 [return p = v]
            if v >= l [return true]
        ]
        c: (last d) + s: 6 - ((last d) // 3 * 2)
        while [c <= l] [
            if prime? c [
                append d c
                if p // c = 0 [return false]
            ]
            c: c + s: 6 - s
        ]
        true
    ]
]


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to