FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
smallbasic.github.io/samples/node/115.bas at master · smallbasic/smallbasic.github.io · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
smallbasic
/
smallbasic.github.io
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
4
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
smallbasic.github.io
/
samples
/
node
/
115.bas
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (32 loc) · 561 Bytes
Breadcrumbs
smallbasic.github.io
/
samples
/
node
/
115.bas
Copy path
File metadata and controls
34 lines (32 loc) · 561 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
'
#sec:Main
const
z
=
200
dim
primes
(
z
)
primes
(
1
)=
2
cand
=
3
i
=
2
treq
=
ticks
repeat
testcand
if
prime
then
primes
(
i
)=
cand
:
i
=
i
+
1
:
if
not
(
i
%
5
)
then
?
"
.
"
;
cand
=
cand
+
2
until
i
>
z
cls
? z;
"
primes in
"
;(
ticks
-
treq
)/
tickspersec
;
"
secs
"
pause
cls
for
i
=
1
to
z
step
5
?
primes
(
i
),
primes
(
i
+
1
),
primes
(
i
+
2
),
primes
(
i
+
3
),
primes
(
i
+
4
)
if
!((
i
+
4
)%
50
)
then
?
"
"
+
chr
$(
10
)+
"
Primes
"
+
str
$(
i
+
4-49
)+
"
-
"
+
str
$(
i
+
4
) : pause :
cls
next
end
sub
testcand
s
=
sqr
(
cand
)
n
=
1
prime
=
false
while
primes
(
n
)<=
s
t
=
cand
/
primes
(
n
)
if
t
=
int
(
t
)
then
exit sub
n
=
n
+
1
wend
prime
=
true
end
'
Back
|
FazBrowse Home
|
New Git URL