ruth_aaron_pairs: Find Ruth-Aaron Pairs of Integers

View source: R/ruth_aaron_pairs.R

ruth_aaron_pairsR Documentation

Find Ruth-Aaron Pairs of Integers

Description

Find pairs of consecutive integers where the prime factors sum to the same value. For example, (5, 6) are Ruth-Aaron pairs because the prime factors 5 = 2 + 3.

Usage

ruth_aaron_pairs(min, max, distinct = FALSE)

Arguments

min

an integer representing the minimum number to check.

max

an integer representing the maximum number to check.

distinct

a logical indicating whether to consider repeating prime factors or only distinct prime number factors.

Value

A List of integer pairs.

Author(s)

Paul Egeler, MS


Ironholds/primes documentation built on Feb. 1, 2024, 1:26 a.m.