Convert "Prime Factors" to typst

This commit is contained in:
Mark 2025-01-22 21:19:14 -08:00
parent df27f2d46e
commit 5b245b9e16
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
2 changed files with 23 additions and 34 deletions

View File

@ -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}

View File

@ -0,0 +1,23 @@
#import "@local/handout:0.1.0": *
#show: handout.with(
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)