Skip to content

A friend sent me a problem. I solved it in ~8 hours. Here's what I did!

Notifications You must be signed in to change notification settings

Brahvim/RandomPrimesProblem1

Repository files navigation

RandomPrimesProblem1!

...So I'm making this README a bit too personal, but I... overslept during the day (...a-as usual, for when I do sleep during the day, which I- Tsk I don't do it much, okay?! Very few days!), ...and woke up at 7 PM.

Apparently, at exactly 4 PM (3 hours ago! When I had literally started sleeping! Haha!...), a friend sent me a CS problem on WhatsApp.
Here are the two messages he sent (sorry that I wasn't bothered to rewrite them 😅):

First message:

"""
i need help in programming
Can you

Question is
take input from user and check whether the no. is haning no.( The no. which are positive even no. whose prime factor includes 2, 3, 5 only. )

Example
n=6
6=2*3

n=90
90=233*5

n=44
44=2211 ( Not a haning no. )
"""

Second message:

"""
plz don't solve this problem by ( return statement)
"""

I'm no computer scientist!

I worked till 1 in the night and then another 2 hours in the morning to solve it ._.
Too slow! ..I know, real computer scientists reading this!

(PS Some online friends had me talking, ...uhh, I haven't been on Discord for months, lately - that's why!)
(I can't stay awake. I don't risk my sleep.)

...But it worked! And I had at least two actual solutions.
I was trying to optimize the code and 'making discoveries' all this time! Haha...

Here are some links ta' help you out!:

Epilogue:

That's it! Done writing this README. It's 7:41 IST (GMT+5:30 / UTC+5:30) in the morning of 21 January 2024 now!
<Yaaaaaaaaawn!>! ...this is my first holiday for this month after 20 days of college exams (6 exams spread over 20 days, okay?! I'm no show off! Especially not a fake one!).
...alright, -O-!
...

...^-^!
Bye! ":D!

About

A friend sent me a problem. I solved it in ~8 hours. Here's what I did!

Topics

Resources

Stars

Watchers

Forks

Languages