Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 20th, 2018
86
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
def largest_prime_factor(num):
remainder = num
factor = 2
while remainder != 1:
if remainder % factor == 0:
remainder /= factor
else:
factor += 1
return factor
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 6 min ago | 0.39 KB
multi_queue
Python | 15 min ago | 0.54 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 21 min ago | 0.38 KB
llama 3 70B sample
Swift | 41 min ago | 6.14 KB
Untitled
C++ | 46 min ago | 3.71 KB
concatenate ranges
C++ | 52 min ago | 1.80 KB
EasyButton Library rev_01
Arduino | 1 hour ago | 1.85 KB
Untitled
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!