Legendre prime counting function: Difference between revisions
Content added Content deleted
(Add swift) |
m (cleanup swift) |
||
Line 811: | Line 811: | ||
guard a != 0 else { |
guard a != 0 else { |
||
return x |
|||
Cache.cache["\(x),\(a)"] = x |
|||
return Cache.cache["\(x),\(a)"]! |
|||
} |
} |
||