यदि \(f:\{1,2,3,4\}\to\{0,1\}\) को इस नियम से परिभाषित किया गया है कि \(x\) अभाज्य होने पर \(f(x)=1\) और \(x\) अभाज्य न होने पर \(f(x)=0\), तो \(f(4)\) का मान क्या है?
If \(f:\{1,2,3,4\}\to\{0,1\}\) is defined by the rule that \(f(x)=1\) when \(x\) is prime and \(f(x)=0\) when \(x\) is not prime, what is the value of \(f(4)\)?
Explanation opens after your attempt
A. 0
Simple Explanation
4 अभाज्य संख्या नहीं है, क्योंकि इसके 1 और 4 के अतिरिक्त 2 से भी गुणनखंड बनते हैं। इसलिए दिए गए नियम के अनुसार \(f(4)=0\)। विकल्प 1 तब सही होता जब 4 अभाज्य होता। परीक्षा में पहले जाँचें कि दिया गया इनपुट अभाज्य है या नहीं। / The number 4 is not prime because it has a factor other than 1 and itself, namely 2. Therefore, by the given rule, \(f(4)=0\). Option 1 would apply only if 4 were prime. In an exam, first check whether the input is prime or non-prime.
Login to save your score, XP, coins and progress.
