Re: Project Euclid Problem 26 SOLVED!!!

Liste des GroupesRevenir à ol advocacy 
Sujet : Re: Project Euclid Problem 26 SOLVED!!!
De : Physfitfreak (at) *nospam* gmail.com (Physfitfreak)
Groupes : comp.os.linux.advocacy
Date : 09. Mar 2024, 21:37:50
Autres entêtes
Message-ID : <usidqe$15gr6$2@solani.org>
References : 1
User-Agent : Mozilla Thunderbird
On 3/9/2024 7:28 AM, Farley Flud wrote:
Project Euclid Problem is SOLVED!!!
 https://projecteuler.net/problem=26
 Using the fantastically potent FOSS CAS Maxima/wxMaxima the solution
is a fucking snap:
 max:1$
maxd:3$
for num:3 thru 1000 step 1 do (
     d:1,
     fact_list:ifactors(num),
     for i:1 thru length(fact_list) do (
     if not(fact_list[1] = 2 or fact_list[1] = 5) then d:d*fact_list[1]^fact_list[2]
       ),
     if not(d = 1) then (
         rep:zn_order(10,d), print("denom = ", num, "repeats = ", rep),
         if (rep > max) then (max:rep, maxd:num)
     )
     else (print("denom = ", num, "terminating"))
);
print("Max rep =", max, "at denom =", maxd);
  The output is not ideal, but hey, I am a fucking messy eater.
I spill my coffee.  I slobber all over my shirt.  But I ALWAYS
get the correct answer in the most efficient way and that's
ALL that matters.
 Hail Linux!
 Hail GNU, FOSS, and the FSF!
 Hail Stallman!
 
I don't understand. You say it's solved. So what did your code find? Which denominator under 1000 gives the longest repeating decimals if numerator is 1?
--
This email has been checked for viruses by Avast antivirus software.
www.avast.com

Date Sujet#  Auteur
9 Mar 24 * Project Euclid Problem 26 SOLVED!!!32Farley Flud
9 Mar 24 +- Re: Project Euclid Problem 26 SOLVED!!!1Farley Flud
9 Mar 24 +- Re: Project Euclid Problem 26 SOLVED!!!1Farley Flud
9 Mar 24 `* Re: Project Euclid Problem 26 SOLVED!!!29Physfitfreak
9 Mar 24  +* Re: Project Euclid Problem 26 SOLVED!!!18Diego Garcia
9 Mar 24  i`* Re: Project Euclid Problem 26 SOLVED!!!17Physfitfreak
9 Mar 24  i +- Re: Project Euclid Problem 26 SOLVED!!!1Physfitfreak
9 Mar 24  i +- Re: Project Euclid Problem 26 SOLVED!!!1Physfitfreak
9 Mar 24  i +- Re: Project Euclid Problem 26 SOLVED!!!1Stéphane CARPENTIER
9 Mar 24  i +- Re: Project Euclid Problem 26 SOLVED!!!1Farley Flud
10 Mar 24  i `* Re: Project Euclid Problem 26 SOLVED!!!12Farley Flud
10 Mar 24  i  `* Re: Project Euclid Problem 26 SOLVED!!!11Physfitfreak
10 Mar 24  i   +- Re: Project Euclid Problem 26 SOLVED!!!1Farley Flud
11 Mar 24  i   `* Re: Project Euclid Problem 26 SOLVED!!!9Farley Flud
11 Mar 24  i    +* Re: Project Euclid Problem 26 SOLVED!!!2Nuxxie
12 Mar 24  i    i`- Re: Project Euclid Problem 26 SOLVED!!!1DFS
11 Mar 24  i    +* Re: Project Euclid Problem 26 SOLVED!!!2Physfitfreak
11 Mar 24  i    i`- Re: Project Euclid Problem 26 SOLVED!!!1Farley Flud
12 Mar 24  i    `* Re: Project Euclid Problem 26 SOLVED!!!4Nuxxie
12 Mar 24  i     `* Re: Project Euclid Problem 26 SOLVED!!!3Physfitfreak
12 Mar 24  i      `* Re: Project Euclid Problem 26 SOLVED!!!2Farley Flud
13 Mar 24  i       `- Re: Project Euclid Problem 26 SOLVED!!!1Physfitfreak
9 Mar 24  `* Re: Project Euclid Problem 26 SOLVED!!!10DFS
9 Mar 24   +* Re: Project Euclid Problem 26 SOLVED!!!8Diego Garcia
9 Mar 24   i+* Re: Project Euclid Problem 26 SOLVED!!!4Stéphane CARPENTIER
9 Mar 24   ii`* Re: Project Euclid Problem 26 SOLVED!!!3Farley Flud
12 Mar 24   ii `* Re: Project Euclid Problem 26 SOLVED!!!2DFS
12 Mar 24   ii  `- Re: Project Euclid Problem 26 SOLVED!!!1candycanearter07
9 Mar 24   i+* Re: Project Euclid Problem 26 SOLVED!!!2DFS
9 Mar 24   ii`- Re: Project Euclid Problem 26 SOLVED!!!1Stéphane CARPENTIER
10 Mar 24   i`- Re: Project Euclid Problem 26 SOLVED!!!1Physfitfreak
9 Mar 24   `- Re: Project Euclid Problem 26 SOLVED!!!1Stéphane CARPENTIER

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal