Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 11th, 2019
95
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
function factoring(n){
const arr = [];
let i = 2;
do {
if (n % i) {
i++;
} else {
arr.push(i);
n = n / i;
}
} while (i < n)
arr.push(i);
return arr;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
PL/SQL | 23 min ago | 3.50 KB
Simple QR Code Generator (MicroPython)
Python | 26 min ago | 1.13 KB
cc: tweaked - petr_axeman - udig
Lua | 29 min ago | 0.84 KB
hit Calculator
C++ | 48 min ago | 0.89 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 59 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 60 min ago | 0.39 KB
anagram
C | 1 hour ago | 0.78 KB
merenje sa n tegova - backtracking
C# | 1 hour ago | 1.27 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!