Message Boards Message Boards

Happy CPFC day! (common number of lifetime's prime-factors)

Posted 3 years ago

Have some weekend fun figuring out when you share a day in life allowing a factorization that has an equal number of prime factors as other people around you. Take on the challenge to find the asymptotic probability that a day with common given prime factor count will appear in the future given the differences between birthdays and the calendar date you are interested in. Best regards, Fabian

POSTED BY: Fabian Wenger
5 Replies

enter image description here -- you have earned Featured Contributor Badge enter image description here Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

POSTED BY: Moderation Team
Posted 3 years ago

Easier to read.

$\large\int_2^{\sqrt[3]{M}} -\frac{\log \left(\frac{\log (p)}{\log \left(\frac{M}{p^2}\right)}\right)}{p \log (p) \log \left(\frac{M}{p}\right)} \, dp$

POSTED BY: Rohit Namjoshi
POSTED BY: Fabian Wenger

Thanks Rohit, always interesting to learn how to write better WL code, both Subsets and Sequence were new for me!

POSTED BY: Fabian Wenger
Posted 3 years ago

Hi Fabian,

Cool idea! I have been trying it out on extended family members birthdates.

A more functional way to generate addDays.

addDays = 
 Subsets[bDates, {2}] // Map[-DateDifference[Sequence @@ ##] & /* QuantityMagnitude]
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract