Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F9896558
microbuzz.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
407 B
Referenced Files
None
Subscribers
None
microbuzz.js
View Options
function
microbuzz
(
n
)
{
var
next_mult_3
=
0
,
next_mult_5
=
0
,
next_n
=
0
,
answer
=
0
;
while
(
next_n
<=
n
)
{
if
(
next_n
==
next_mult_3
||
next_n
==
next_mult_5
)
answer
=
answer
+
1
;
if
(
next_n
==
next_mult_3
)
next_mult_3
=
next_mult_3
+
3
;
if
(
next_n
==
next_mult_5
)
next_mult_5
=
next_mult_5
+
5
;
next_n
=
next_n
+
1
;
}
return
answer
;
}
console
.
log
(
microbuzz
(
10000
));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 1, 1:00 PM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
587980
Default Alt Text
microbuzz.js (407 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment