Features
Explore
About
Townie
AI
Docs
Pricing
Log in
Sign up
Log in
Sign up
primes
@arbesman
Public
Script
Fork
0 Likes
Code
Pull Requests
Forks
References
Dependencies
Versions
v1
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Sign up with GitHub
primes
Script
v1
Fork
1
2
3
4
export
let
primes
=
[
]
;
for
(
let
i
=
2
;
i
<
10000
;
i
++
)
{
if
(
!
primes
.
some
(
p
=>
i
%
p
===
0
)
)
primes
.
push
(
i
)
}
October 23, 2023
Copy module URL
https://esm.town/v/arbesman/primes
Copy script tag
<script type="module" src="https://esm.town/v/arbesman/primes" />
Copy embed code
Copy link
Copy Val ID