Prime conspiracy: Difference between revisions

Content added Content deleted
(+Racket)
Line 1,863: Line 1,863:
(match-define (cons (cons x y) freq) item)
(match-define (cons (cons x y) freq) item)
(printf "~a → ~a count: ~a frequency: ~a %\n"
(printf "~a → ~a count: ~a frequency: ~a %\n"
x y (~a freq #:width 8 #:align 'right) (~r (* 100 freq (/ 1 limit)) #:precision '(= 2))))</lang>
x y (~a freq #:min-width 8 #:align 'right) (~r (* 100 freq (/ 1 limit)) #:precision '(= 2))))</lang>


{{out}}
{{out}}