HEX
Server: Apache
System: Linux vps.mmtprep.com 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: mmtprep (1001)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/5A13-XAMdVS1E.js
import{E as v,aj as E,h as c,w as r,f as C,bh as R,m as u,bi as k,c as F,a as y,s as j,l as w}from"./index-XCg2QAX4.js";const N=!0,T="mathLive",P=!0,q="AMCOpen",M="Decompose into prime factors",S="7f50c",W="5A13";function H(){v.call(this),this.spacing=2,this.nbQuestions=6,this.sup=2,this.sup2=!1,this.sup3=!1,this.sup4=!1,this.correctionDetailleeDisponible=!0,this.correctionDetaillee=!1,this.nouvelleVersion=function(){this.consigne=this.nbQuestions>1?"Write the following numbers as a product of prime factors":"Write the following number as a product of prime factors",this.consigne+=this.interactif?" arranged in ascending order.":".",this.level===2&&(this.sup=3,this.sup2=!0),this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[];let p,f,m;this.sup3?(f=[2,3,5,7,11],m=[2,3,7,13,17]):(f=[2,3,5],m=[2,5,7,11]),this.sup2&&this.sup3?p=E([!0,!0,!1,!0],this.nbQuestions):this.sup2?p=E([!1,!1,!1,!0],this.nbQuestions):p=E([!1,!1,!1,!1],this.nbQuestions),this.sup=parseInt(this.sup);for(let o=0,t,e=[],a,$,b,i,Q=0;o<this.nbQuestions&&Q<50;){e=[],a=this.sup+2;for(let s=0;s<a;s++)s<a-1?a>3&&s===0?this.sup3?e.push(c([2,3])):e.push(2):a>4&&s===1?this.sup3?e.push(c([2,3])):e.push(2):this.sup3?e.push(c(f.concat(7))):e.push(c(f)):this.sup3?e.push(c(m.concat([3,13]))):e.push(c(m));this.sup2&&p[o]&&(this.sup3?e.push(2,2,3,5):e.push(2,2,5,5)),t=1;for(let s=0;s<e.length;s++)t=t*e[s];$="$"+r(t)+" =$",i="",this.correctionDetaillee||(i+="$"+r(t)+" = $"+C()),b="",e.sort(R);let l=new Set(e);l=[...l];let d="";for(let s=0;s<l.length;s++){const n=l[s];let x=0;for(let A=0;A<e.length;A++)e[A]===n&&x++;x>1?d+=`${n}^${x}`:d+=`${n}`,s!==l.length-1&&(d+=" \\times")}let h=1,D="",g="";for(let s=0;s<e.length-1;s++){if(!this.sup3&&!this.sup4&&(this.correctionDetaillee||(i+=`$${u(e[s]+"\\times")}$`)),this.correctionDetaillee){D+=e[s]+" \\times";for(let n=s+1;n<e.length;n++)h=h*e[n];i+="$"+r(t)+" ="+D+h+"$<br>",g=C()+D+h,h=1}b+=e[s]+"\\times"}!this.sup3&&!this.sup4?this.correctionDetaillee||(i+=`$${u(e[e.length-1])}$`):(this.correctionDetaillee&&(i+="$"+r(t)+" ="+C()+" $"),g=C()+k(t,!0),i+=`$${u(g)}$`,this.correctionDetaillee&&(i+="<br>")),this.correctionDetaillee&&(i+=`<br>So the decomposition into the product of prime factors of $${u(r(t),"black")}$ is $${u(g)}$.`),b+=e[e.length-1],F.isAmc&&(this.autoCorrection[o]={enonce:$+`
`,propositions:[{texte:i,statut:5,sanscadre:!1,pointilles:!0,feedback:""}]}),$+=y(this,o,"largeur75 inline nospacebefore"),F.isAmc||j(this,o,[b,d]),this.questionJamaisPosee(o,...e)&&(this.listeQuestions.push($),this.listeCorrections.push(i),F.isHtml||(this.canEnonce=`Decompose $${r(t)}$ into product of prime factors.`,this.correction=this.listeCorrections[0],this.canReponseACompleter=`$${r(t)}=\\ldots$`,this.listeCanEnonces.push(this.canEnonce),this.listeCanReponsesACompleter.push(this.canReponseACompleter)),o++),Q++}w(this)},this.besoinFormulaireNumerique=["Difficulty level",3,`1: 3 factors
2: 4 factors
3: 5 factors`],this.besoinFormulaire2CaseACocher=["Large numbers (once in four)"]}export{P as amcReady,q as amcType,H as default,N as interactifReady,T as interactifType,W as ref,M as titre,S as uuid};
//# sourceMappingURL=5A13-XAMdVS1E.js.map