Data update
This commit is contained in:
parent
796d366b97
commit
35bcdeebf8
504 changed files with 7045 additions and 610 deletions
|
|
@ -0,0 +1,25 @@
|
|||
fastfunc isprim num .
|
||||
if num mod 2 = 0 and num > 2
|
||||
return 0
|
||||
.
|
||||
i = 3
|
||||
while i <= sqrt num
|
||||
if num mod i = 0
|
||||
return 0
|
||||
.
|
||||
i += 2
|
||||
.
|
||||
return 1
|
||||
.
|
||||
counter = 0
|
||||
maxnum = pow 2 53
|
||||
for i = 42 to maxnum
|
||||
if isprim i = 1
|
||||
counter += 1
|
||||
print "n=" & counter & " " & i
|
||||
if counter >= 42
|
||||
break 1
|
||||
.
|
||||
i += i - 1
|
||||
.
|
||||
.
|
||||
Loading…
Add table
Add a link
Reference in a new issue