We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Project Euler #3: Largest prime factor
Project Euler #3: Largest prime factor
Sort by
recency
|
477 Discussions
|
Please Login in order to post a comment
can anyone make my code more optimized
import java.io.; import java.util.;
public class Solution {
}
!/bin/python3
import math import os import random import re import sys
def p_fact(n): f=[] i=2 while i*i <=n: if n%i==0: f.append(i) n//=i else: i+=1 if n>1: f.append(n) return max(f)
if name == 'main': t = int(input().strip())
You can use Unitextify for different font styles. However, the solution to problem is:
Can anyone pleasee help me find the 5th Testcase issue or an error in my code? That is the only one failing:
Below is my code but one hidden test case is still failing, can someone help here?
import java.util.*;
public class Solution {
}