Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Projet LaTeX
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Enzo GUELLE
Projet LaTeX
Commits
bb4b1b5c
Commit
bb4b1b5c
authored
7 months ago
by
François Lasota
Browse files
Options
Downloads
Patches
Plain Diff
Algorithme python PGCD fini mais pas bo
parent
1359d8e3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Rapport.tex
+13
-4
13 additions, 4 deletions
Rapport.tex
_8637664FDC0640A04BB7368B5478ECDD.data.minted
+6
-0
6 additions, 0 deletions
_8637664FDC0640A04BB7368B5478ECDD.data.minted
with
19 additions
and
4 deletions
Rapport.tex
+
13
−
4
View file @
bb4b1b5c
...
...
@@ -7,7 +7,7 @@
\usepackage
{
hyperref
}
\usepackage
{
xcolor
}
\usepackage
[a4paper, total={6in, 8in}]
{
geometry
}
\usepackage
{
movie15
}
% Pour pouvoir mettre des gifs
\usepackage
{
listings
}
\newtheorem
{
theorem
}{
Théorème
}
\newtheorem
{
proof
}{
Démonstration
}
\title
{
Le théorème fondamental de l'arithmétique
}
...
...
@@ -216,8 +216,17 @@ Il a été énoncé par Euclide dans son livre \textit{Les Éléments} numéro V
Effectivement,
$
12
=
4
\times
3
$
et
$
8
=
4
\times
2
$
\begin{lstlisting}
[language=Python]
def PGCD(A,B): # On assume que A>B
E=[] # Je n'ai pas fait l'algorithme humain, mais un algorithme plus efficace pour les ordinateurs
for i in range(A):
if A
%i==0 and B%i==0: # Si Le nombre est diviseurs de A et B.
E.append(i)
return E[-1] # Le dernier etant le plus grand, pouvant etre 1
\subsection
{
Algotrithme du PPCM
}
\end{lstlisting}
\subsection
{
Algorithme du PPCM
}
\begin{itemize}
\item
Déterminons l'algorithme que l'humain utiliserait pour calculer le PPCM entre 2 nombres A et B appartenant à
$
\mathbb
{
N
^{
*
}}$
:
\item
En premier lieu, il faut trouver
\hyperref
[th:exemple]
{
la décomposition en facteurs premiers
}
$
F
_{
A
}$
de A, et respectivement
$
F
_{
B
}$
de B.
...
...
This diff is collapsed.
Click to expand it.
_8637664FDC0640A04BB7368B5478ECDD.data.minted
0 → 100644
+
6
−
0
View file @
bb4b1b5c
{
"command": "config",
"jobname": "Rapport",
"timestamp": "20250114184021",
"cachedir": "_minted",
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment