I am the author of this code, allow me to explain. For the coding challenge, I was told that I had to program in a different language, but I already used the languages I know for previous challenges, so I had to make use of my Japanese skill set, which consists of knowing hiragana, katakana, and a 1 year old's vocabulary
Both points make sense. If you ask me to enunciate "input" in Japanese, I would say インプット, I need to remember to take my time before writing. 私は3ヶ月間日本語を勉強しました。少し日本語をわかります。毎日10から30分勉強します。アニメと日本の音楽が好きです。 I've just been learning for fun on my own, I probably made many mistakes with what I just said. Also, that makes sense regarding レンジ, since a range is a kind of oven in English. Thanks for the info! ありがとうございます。
My wife is Japanese and she's taught all of our kids how to speak 日本語、plus I've had a few "butt in seat" classes. It sounds like we're at about the same level (although my conversational 日本語 is a little better than a 1 year olds, and I suspect that yours is, too - you're being modest).
What makes me bring this up is kanji is my nemesis. I know about 100 and, to be honest, probably 50 or so well, and one needs around 3500 at a minimum to get by. I was trying to figure out what you used there so that I could pick up the logic. I guessed "鶴" (like "short for trunc or truncate"), but that's not it. What kanji did you use there? The bitmap is a bit too compressed for me to make it out.
BTW, we live in Hilo, HI, so there are tons of 二世、三世、etc. here. :)
数 (かず) or "number". I could only write that because I can type かず. If you ask me to recognize a random kanji that I've learned before, I might get it wrong if I don't have context because I need a lot more experience reading and writing. Kanji is hard, but I'm hoping things will stick if I keep studying a bit every day. I'm constantly making mistakes and there's so much I don't know, so I compared myself to a 1 year old, but I can tell that I'm making progress
I'm age 58. It ain't stickin' too well for my "over the expiry date, piece of meat" brain... Writing 'em? No sweat. I actually won an award for that (I mean, to me, kanji falls into the "art" category. My normal penmanship in English is terrible. Doctors look at my handwriting and go, "Man, this dude's handwriting is BAD"), and my 先生 asked for permission to use it as an example for future semesters (I just wrote down a おはなし about my life, so it was essentially a verbal story, transliterated. I looked up some kanji that I was supposed to know, stuck them in there and then had my wife proofread it. I remember her smacking her head a lot). Remembering the on-yomi and the kun-yomi, which context you're in and how to pronounce it? Brain hurty... :)
Your goal is to find the number of PrimeLovers.
PrimeLover is such a number that if we convert the number to its binary value, the sum of digits will be a prime number.
Example:
9 is a PrimeLover because 9=(1001)_2 and 1+0+0+1=2 is a prime number.
Reza loves PrimeLovers, so he decided to count all the PrimeLovers between 0 and 2^n for the given n in input. Can you help him with the calculations?
Input
An integer n
Output
number of primeLovers between 0 and 2^n
My code was not optimal, but the important thing is that I still got 3rd place out of 15 people trying to code golf this in 15 minutes
You're the second person to accidentally reply to your own comment instead of the comment you were supposed to reply to in this post. Is my phone having a stroke or is it just a funny coincidence?
It says “for every T bone 🍖, multiply those foods, fu, then count some obfuscation in another language and nest a smiley face , and fu… your greater than #1
499
u/[deleted] Jan 14 '23 edited Mar 11 '23
I am the author of this code, allow me to explain. For the coding challenge, I was told that I had to program in a different language, but I already used the languages I know for previous challenges, so I had to make use of my Japanese skill set, which consists of knowing hiragana, katakana, and a 1 year old's vocabulary
59
u/Sabey_Tee Jan 14 '23
I'm too inexperienced in code to appreciate this.
40
u/namrednels97 Jan 14 '23
Peak weebness achieved! It was a golf challenge for those wondering.
22
u/userocetta Jan 14 '23
LET HIM COOK
12
u/itzNukeey Jan 14 '23
Well he has Pepega icon so it makes sense
5
u/RepresentativeYam324 Jan 14 '23
What does it do
3
u/[deleted] Jan 15 '23
It says “for every T bone 🍖, multiply those foods, fu, then count some obfuscation in another language and nest a smiley face , and fu… your greater than #1
2
u/Da-Blue-Guy Jan 15 '23
what website is this (if it is)?
1
u/SueedBeyg Good code makes sense. Bad code just works. Yours does neither. Jan 15 '23
“the code speaks for itself”
No, it, really doesn’t; the code’s gonna have to be a lot clearer on what it’s demands are.
1
u/Denis9365 Jan 15 '23
bing chilling
1
u/Itchy-Distribution83 Jan 15 '23
Where’s Hans at