Home Manual Reference Source

References

sieve

summary
private

F __eratosthenes__(alloc: *, fill: *, get: *, gothrough: *, usqrt: *): *

Sieve of Eratosthenes.

private

F __eratosthenes2__(alloc: *, fill: *, get: *, gothrough: *, usqrt: *): *

Sieve of Eratosthenes skipping all multiples of 2.

private

F __eratosthenes23__(alloc: *, fill: *, get: *, gothrough: *, usqrt: *): *

Sieve of Eratosthenes skipping all multiples of 2 and 3.

private

F __gothrough__(set: setter): *

Goes through an array and crosses out non prime numbers.

public

F itop(i: *): *

public

F itop2(i: *): *

public

F itop23(i: *): *

public

F itop230(i: *): *

public

F itop231(i: *): *

public

F ptoi(p: *): *

public

F ptoi2(p: *): *

public

F ptoi23(p: *): *

public

F ptoi230(p: *): *

public

F ptoi231(p: *): *

ulam

summary
public

F atos(i: *, n: *): *

Converts a square Ulam spiral index to an array index.

public

F stoa(i: *, n: *): *

Converts an array index to a square Ulam spiral index.

Directories