codesankalp / dsalgo

MIT License
8 stars 25 forks source link

Created math.py #16

Open keshavgbpecdelhi opened 4 years ago

keshavgbpecdelhi commented 4 years ago

Right now this consists of these functions which are as follows : list_hcf(l) - HCF of a list list_prime(l) - Primes in a list next_prime(n) - next prime of a number prev_prime(n) - previous prime of a number list_lcm(a) - LCM of a list hcf_k_elements(l,k) - HCF of k elements in a list lcm_k_elements(l, k) - LCM of k elements in a list where k and n implies numbers (integers) and l implies list. Fixes #14