Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
number_of_divisors
_takumi
Apr 22nd, 2021
1,122
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
int
F
(
int
n
)
{
set
<
int
>
ans
;
for
(
int
i
=
2
;
i
<=
n
;
i
++
)
{
if
(
n
%
i
==
0
)
{
ans.
insert
(
i
)
;
while
(
n
%
i
==
0
)
n
/
=
i
;
i
=
2
;
}
}
return
ans.
size
(
)
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
✅ Instant Profits with Crypto
CSS | 57 sec ago | 0.71 KB
⭐ Free $$$ Mehtod
CSS | 6 min ago | 0.71 KB
2 Day in +12.000$ ⭐
CSS | 10 min ago | 0.71 KB
⭐ Free $$$ Mehtod
CSS | 16 min ago | 0.71 KB
2 Day in +12.000$ ⭐
CSS | 23 min ago | 0.71 KB
⭐ Free $$$ Mehtod
CSS | 26 min ago | 0.71 KB
✅ Instant Profits with Crypto
CSS | 33 min ago | 0.71 KB
⭐ Free $$$ Mehtod
CSS | 37 min ago | 0.71 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!