Legendre prime counting function: Difference between revisions
Content added Content deleted
(Added FreeBASIC) |
GordonBGood (talk | contribs) (→{{header|FreeBASIC}}: incorrect; doesn't fill requirements of task...) |
||
Line 1,169: | Line 1,169: | ||
=={{header|FreeBASIC}}== |
=={{header|FreeBASIC}}== |
||
{{incorrect|FreeBASIC|This is not a Legendre prime counting function but a very inefficient trial division (`Mod`) sieve.}} |
|||
<syntaxhighlight lang="vbnet">Function isPrime(n As Uinteger) As Boolean |
<syntaxhighlight lang="vbnet">Function isPrime(n As Uinteger) As Boolean |
||
Dim As Uinteger i |
Dim As Uinteger i |