From 9cd8ab741c21ef39978fedd679b4a34db55dd14b Mon Sep 17 00:00:00 2001 From: Mark Date: Wed, 22 Jan 2025 21:19:14 -0800 Subject: [PATCH] Convert "Prime Factors" to typst --- src/Warm-Ups/Prime Factors/main.tex | 34 ----------------------------- src/Warm-Ups/Prime Factors/main.typ | 29 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 34 deletions(-) delete mode 100755 src/Warm-Ups/Prime Factors/main.tex create mode 100644 src/Warm-Ups/Prime Factors/main.typ diff --git a/src/Warm-Ups/Prime Factors/main.tex b/src/Warm-Ups/Prime Factors/main.tex deleted file mode 100755 index 4f5a400..0000000 --- a/src/Warm-Ups/Prime Factors/main.tex +++ /dev/null @@ -1,34 +0,0 @@ -\documentclass[ - solutions, - singlenumbering, - nopagenumber, - hidewarning -]{../../../lib/tex/ormc_handout} -\usepackage{../../../lib/tex/macros} - -\title{Warm-Up: Prime Factors} -\uptitler{\smallurl{}} -\subtitle{Prepared by Mark on \today.} - -\begin{document} - - \maketitle - - \problem{} - What proportion of integers have $2$ as their smallest prime factor? - % 1^2 - \vfill - - - \problem{} - What proportion of integers have $3$ as their second-smallest prime factor? - % 1/6 - \vfill - - - \problem{} - What is the median second-smallest prime factor? - % 37 - \vfill - -\end{document} \ No newline at end of file diff --git a/src/Warm-Ups/Prime Factors/main.typ b/src/Warm-Ups/Prime Factors/main.typ new file mode 100644 index 0000000..626c9a9 --- /dev/null +++ b/src/Warm-Ups/Prime Factors/main.typ @@ -0,0 +1,29 @@ +#import "@local/handout:0.1.0": * + +#show: doc => handout( + doc, + quarter: link( + "https://betalupi.com/handouts", + "betalupi.com/handouts", + ), + + title: [Warm-Up: Prime Factors], + by: "Mark", +) + +#problem() +What proportion of integers have $2$ as their smallest prime factor? +#solution([$1 div 2$]) +#v(1fr) + + +#problem() +What proportion of integers have $3$ as their second-smallest prime factor? +#solution([$1 div 6$]) +#v(1fr) + + +#problem() +What is the median second-smallest prime factor? +#solution([37]) +#v(1fr)