Skip to content

Instantly share code, notes, and snippets.

View jameslear314's full-sized avatar

James Lear jameslear314

View GitHub Profile
@jameslear314
jameslear314 / keybase.md
Created June 6, 2024 02:24
Keybase: jameslear314

Keybase proof

I hereby claim:

  • I am jameslear314 on github.
  • I am jameslear314 (https://keybase.io/jameslear314) on keybase.
  • I have a public key ASAtVMYd8scQWt-S4Ra3KXIu6S4kGh7i6-pq0SXexUYCHQo

To claim this, I am signing this object:

@jameslear314
jameslear314 / composite.py
Created January 9, 2021 07:53
Calculate prime factors and confirm the factorization function
import math
def prime_factors(number):
'''Prime numbers have exactly one prime factor;
Composite numbers have multiple prime factors.
Input: any natural number
Output: Dictionary with each factor as key; value is each factor's repetition
Nonstandard output: None