Which big number is bigger? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Sandbox for Proposed Challenges The PPCG Site design is on its way - help us make it awesome!Determine if an Array contains something other than 2Does the sum of 2 numbers in the list equal the desired sum?Is this number a factorial?Test if two numbers are equalDo two numbers contain unique powers of 2Do two numbers contain unique factorials?Impossible cube maybeAm I divisible by double the sum of my digits?Check if a string is entirely made of the same substringWhich really big number is bigger?

Scheduling based problem

How do I check if a string is entirely made of the same substring?

Can you stand up from being prone using Skirmisher outside of your turn?

How to translate "red flag" into Spanish?

What is purpose of DB Browser(dbbrowser.aspx) under admin tool?

Is Diceware more secure than a long passphrase?

What is the best way to deal with NPC-NPC combat?

Why do games have consumables?

Why do distances seem to matter in the Foundation world?

How to not starve gigantic beasts

Is Bran literally the world's memory?

Are these square matrices always diagonalisable?

What’s with the clanks at the end of the credits in Avengers: Endgame?

A faster way to compute the largest prime factor

Was Dennis Ritchie being too modest in this quote about C and Pascal?

Reattaching fallen shelf to wall?

I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?

finding a tangent line to a parabola

Is there metaphorical meaning of "aus der Haft entlassen"?

How to avoid introduction cliches

Are all CP/M-80 implementations binary compatible?

Married in secret, can marital status in passport be changed at a later date?

As an international instructor, should I openly talk about my accent?

How to open locks without disable device?



Which big number is bigger?



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
Sandbox for Proposed Challenges
The PPCG Site design is on its way - help us make it awesome!Determine if an Array contains something other than 2Does the sum of 2 numbers in the list equal the desired sum?Is this number a factorial?Test if two numbers are equalDo two numbers contain unique powers of 2Do two numbers contain unique factorials?Impossible cube maybeAm I divisible by double the sum of my digits?Check if a string is entirely made of the same substringWhich really big number is bigger?










5












$begingroup$


Input



Integers a1, a2, a3, b1, b2, b3 each in the range 1 to 20.



Output



True if a1^(a2^a3) > b1^(b2^b3) and False otherwise.


^ is exponentiation in this question.



Rules



This is code-golf. Your code must terminate correctly within 10 seconds for any valid input on a standard desktop PC.



You can output anything Truthy for True and anything Falsey for False.



Test cases



3^(4^5) > 5^(4^3)
1^(2^3) < 3^(2^1)
3^(6^5) < 5^(20^3)
20^(20^20) > 20^(20^19)
20^(20^20) is not bigger than 20^(20^20)
2^2^20 > 2^20^2









share|improve this question











$endgroup$







  • 1




    $begingroup$
    It would probably also benefit from normal, broadly-defined decision-problem output instead of being restricted to 1 and 0
    $endgroup$
    – Unrelated String
    1 hour ago






  • 2




    $begingroup$
    Can we take the inputs in any order?
    $endgroup$
    – Kevin Cruijssen
    1 hour ago






  • 2




    $begingroup$
    @Anush Imposing a specific order of inputs it not common at all. You should specify that very clearly in the text. By default imput order and format are flexible
    $endgroup$
    – Luis Mendo
    59 mins ago







  • 1




    $begingroup$
    @Anush It means that I could for example choose to take inputs in the order a1,b1,a2,b2,c1,c2, always in that order. Or take the inputs as a 3x2 matrix. Or as an array of arrays
    $endgroup$
    – Luis Mendo
    48 mins ago






  • 1




    $begingroup$
    suggested test case (from H.PWiz): 2^2^20>2^20^2
    $endgroup$
    – attinat
    46 mins ago















5












$begingroup$


Input



Integers a1, a2, a3, b1, b2, b3 each in the range 1 to 20.



Output



True if a1^(a2^a3) > b1^(b2^b3) and False otherwise.


^ is exponentiation in this question.



Rules



This is code-golf. Your code must terminate correctly within 10 seconds for any valid input on a standard desktop PC.



You can output anything Truthy for True and anything Falsey for False.



Test cases



3^(4^5) > 5^(4^3)
1^(2^3) < 3^(2^1)
3^(6^5) < 5^(20^3)
20^(20^20) > 20^(20^19)
20^(20^20) is not bigger than 20^(20^20)
2^2^20 > 2^20^2









share|improve this question











$endgroup$







  • 1




    $begingroup$
    It would probably also benefit from normal, broadly-defined decision-problem output instead of being restricted to 1 and 0
    $endgroup$
    – Unrelated String
    1 hour ago






  • 2




    $begingroup$
    Can we take the inputs in any order?
    $endgroup$
    – Kevin Cruijssen
    1 hour ago






  • 2




    $begingroup$
    @Anush Imposing a specific order of inputs it not common at all. You should specify that very clearly in the text. By default imput order and format are flexible
    $endgroup$
    – Luis Mendo
    59 mins ago







  • 1




    $begingroup$
    @Anush It means that I could for example choose to take inputs in the order a1,b1,a2,b2,c1,c2, always in that order. Or take the inputs as a 3x2 matrix. Or as an array of arrays
    $endgroup$
    – Luis Mendo
    48 mins ago






  • 1




    $begingroup$
    suggested test case (from H.PWiz): 2^2^20>2^20^2
    $endgroup$
    – attinat
    46 mins ago













5












5








5


1



$begingroup$


Input



Integers a1, a2, a3, b1, b2, b3 each in the range 1 to 20.



Output



True if a1^(a2^a3) > b1^(b2^b3) and False otherwise.


^ is exponentiation in this question.



Rules



This is code-golf. Your code must terminate correctly within 10 seconds for any valid input on a standard desktop PC.



You can output anything Truthy for True and anything Falsey for False.



Test cases



3^(4^5) > 5^(4^3)
1^(2^3) < 3^(2^1)
3^(6^5) < 5^(20^3)
20^(20^20) > 20^(20^19)
20^(20^20) is not bigger than 20^(20^20)
2^2^20 > 2^20^2









share|improve this question











$endgroup$




Input



Integers a1, a2, a3, b1, b2, b3 each in the range 1 to 20.



Output



True if a1^(a2^a3) > b1^(b2^b3) and False otherwise.


^ is exponentiation in this question.



Rules



This is code-golf. Your code must terminate correctly within 10 seconds for any valid input on a standard desktop PC.



You can output anything Truthy for True and anything Falsey for False.



Test cases



3^(4^5) > 5^(4^3)
1^(2^3) < 3^(2^1)
3^(6^5) < 5^(20^3)
20^(20^20) > 20^(20^19)
20^(20^20) is not bigger than 20^(20^20)
2^2^20 > 2^20^2






code-golf






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 45 mins ago







Anush

















asked 1 hour ago









AnushAnush

863627




863627







  • 1




    $begingroup$
    It would probably also benefit from normal, broadly-defined decision-problem output instead of being restricted to 1 and 0
    $endgroup$
    – Unrelated String
    1 hour ago






  • 2




    $begingroup$
    Can we take the inputs in any order?
    $endgroup$
    – Kevin Cruijssen
    1 hour ago






  • 2




    $begingroup$
    @Anush Imposing a specific order of inputs it not common at all. You should specify that very clearly in the text. By default imput order and format are flexible
    $endgroup$
    – Luis Mendo
    59 mins ago







  • 1




    $begingroup$
    @Anush It means that I could for example choose to take inputs in the order a1,b1,a2,b2,c1,c2, always in that order. Or take the inputs as a 3x2 matrix. Or as an array of arrays
    $endgroup$
    – Luis Mendo
    48 mins ago






  • 1




    $begingroup$
    suggested test case (from H.PWiz): 2^2^20>2^20^2
    $endgroup$
    – attinat
    46 mins ago












  • 1




    $begingroup$
    It would probably also benefit from normal, broadly-defined decision-problem output instead of being restricted to 1 and 0
    $endgroup$
    – Unrelated String
    1 hour ago






  • 2




    $begingroup$
    Can we take the inputs in any order?
    $endgroup$
    – Kevin Cruijssen
    1 hour ago






  • 2




    $begingroup$
    @Anush Imposing a specific order of inputs it not common at all. You should specify that very clearly in the text. By default imput order and format are flexible
    $endgroup$
    – Luis Mendo
    59 mins ago







  • 1




    $begingroup$
    @Anush It means that I could for example choose to take inputs in the order a1,b1,a2,b2,c1,c2, always in that order. Or take the inputs as a 3x2 matrix. Or as an array of arrays
    $endgroup$
    – Luis Mendo
    48 mins ago






  • 1




    $begingroup$
    suggested test case (from H.PWiz): 2^2^20>2^20^2
    $endgroup$
    – attinat
    46 mins ago







1




1




$begingroup$
It would probably also benefit from normal, broadly-defined decision-problem output instead of being restricted to 1 and 0
$endgroup$
– Unrelated String
1 hour ago




$begingroup$
It would probably also benefit from normal, broadly-defined decision-problem output instead of being restricted to 1 and 0
$endgroup$
– Unrelated String
1 hour ago




2




2




$begingroup$
Can we take the inputs in any order?
$endgroup$
– Kevin Cruijssen
1 hour ago




$begingroup$
Can we take the inputs in any order?
$endgroup$
– Kevin Cruijssen
1 hour ago




2




2




$begingroup$
@Anush Imposing a specific order of inputs it not common at all. You should specify that very clearly in the text. By default imput order and format are flexible
$endgroup$
– Luis Mendo
59 mins ago





$begingroup$
@Anush Imposing a specific order of inputs it not common at all. You should specify that very clearly in the text. By default imput order and format are flexible
$endgroup$
– Luis Mendo
59 mins ago





1




1




$begingroup$
@Anush It means that I could for example choose to take inputs in the order a1,b1,a2,b2,c1,c2, always in that order. Or take the inputs as a 3x2 matrix. Or as an array of arrays
$endgroup$
– Luis Mendo
48 mins ago




$begingroup$
@Anush It means that I could for example choose to take inputs in the order a1,b1,a2,b2,c1,c2, always in that order. Or take the inputs as a 3x2 matrix. Or as an array of arrays
$endgroup$
– Luis Mendo
48 mins ago




1




1




$begingroup$
suggested test case (from H.PWiz): 2^2^20>2^20^2
$endgroup$
– attinat
46 mins ago




$begingroup$
suggested test case (from H.PWiz): 2^2^20>2^20^2
$endgroup$
– attinat
46 mins ago










5 Answers
5






active

oldest

votes


















6












$begingroup$

JavaScript (ES7), 45 bytes



Fixed thanks to @H.PWiz



Returns $true$ if $a^b^c > d^e^f$, or $false$ otherwise.





(a,b,c,d,e,f)=>b**c*(l=Math.log)(a)>e**f*l(d)


Try it online!






share|improve this answer











$endgroup$








  • 1




    $begingroup$
    Eheh we had the same idea... and almost the same byte count :P
    $endgroup$
    – digEmAll
    1 hour ago






  • 4




    $begingroup$
    Shouldn't it be (a,b,c,d,e,f)=>b**c*(l=Math.log)(a)>e**f*l(d)? Yours gives false for f(2,2,20,2,20,2)
    $endgroup$
    – H.PWiz
    50 mins ago










  • $begingroup$
    @H.PWiz Indeed! Thanks. :)
    $endgroup$
    – Arnauld
    43 mins ago


















4












$begingroup$


R, 42 bytes





function(a,b,c,d,e,f)b^c*log(a)>e^f*log(d)


Try it online!



  • Fixed the "symmetry problem" thanks to @H.PWiz suggestion





share|improve this answer











$endgroup$








  • 4




    $begingroup$
    This is wrong for f(2,2,20,2,20,2)
    $endgroup$
    – H.PWiz
    49 mins ago










  • $begingroup$
    Fixed, using your suggestion to @Arnauld answer ;)
    $endgroup$
    – digEmAll
    23 mins ago


















3












$begingroup$


05AB1E, 11 9 bytes



εć.²š}P`›


Port of @Arnauld's JavaScript and @digEmAll's R approaches (I saw them post around the same time)

-2 bytes thanks to @Emigna



Input as [[a1,a2,a3],[b1,b2,b3]].



Try it online or verify all test cases.



Explanation:





ε # Map the (implicit) input-lists to:
ć # Extract the head; pushing the remainder and head separated to the stack
.² # Get the logarithm with base 2 of this head
š # And prepend it back to the remainder
}P # After the map: take the product of both mapped inner lists
` # Push both integers separated to the stack
› # And check if A is larger than B





share|improve this answer











$endgroup$








  • 1




    $begingroup$
    You second version can be εć.²š]P`›
    $endgroup$
    – Emigna
    1 hour ago











  • $begingroup$
    @Emigna Ah nice, I was looking at an approach with ć, but completely forgot about using š (not sure why now that I see it, haha). Thanks!
    $endgroup$
    – Kevin Cruijssen
    1 hour ago











  • $begingroup$
    This seems to be incorrect (because Arnauld's answer was incorrect until the recent fix).
    $endgroup$
    – Anush
    42 mins ago


















2












$begingroup$


Wolfram Language (Mathematica), 23 bytes



#2^#3Log@#>#5^#6Log@#4&


Try it online!






share|improve this answer











$endgroup$












  • $begingroup$
    This doesn't terminate for a1=20, a2=20, a3=20.
    $endgroup$
    – Anush
    1 hour ago










  • $begingroup$
    @Anush fixed...
    $endgroup$
    – J42161217
    1 hour ago


















2












$begingroup$


05AB1E, 13 bytes



Uses the method from Arnauld's JS answer



2F.²IIm*ˆ}¯`›


Try it online!






share|improve this answer











$endgroup$












  • $begingroup$
    This doesn't terminate for a1=20, a2=20, a3=20.
    $endgroup$
    – Anush
    1 hour ago






  • 1




    $begingroup$
    @Anush: Seems to terminate in less than a second to me.
    $endgroup$
    – Emigna
    1 hour ago










  • $begingroup$
    you have to set all the variables to 20. See tio.run/##yy9OTMpM/f9f79Du3GK9Q6tzHzXs@v8/2shAB4xiuRBMAA
    $endgroup$
    – Anush
    1 hour ago










  • $begingroup$
    @Anush: Ah, you meant b1=b2=b3=20 ,yeah that doesn't terminate.
    $endgroup$
    – Emigna
    1 hour ago






  • 1




    $begingroup$
    @Anush: It is fixed now. Thanks for pointing out my mistake :)
    $endgroup$
    – Emigna
    1 hour ago











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "200"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f184734%2fwhich-big-number-is-bigger%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























5 Answers
5






active

oldest

votes








5 Answers
5






active

oldest

votes









active

oldest

votes






active

oldest

votes









6












$begingroup$

JavaScript (ES7), 45 bytes



Fixed thanks to @H.PWiz



Returns $true$ if $a^b^c > d^e^f$, or $false$ otherwise.





(a,b,c,d,e,f)=>b**c*(l=Math.log)(a)>e**f*l(d)


Try it online!






share|improve this answer











$endgroup$








  • 1




    $begingroup$
    Eheh we had the same idea... and almost the same byte count :P
    $endgroup$
    – digEmAll
    1 hour ago






  • 4




    $begingroup$
    Shouldn't it be (a,b,c,d,e,f)=>b**c*(l=Math.log)(a)>e**f*l(d)? Yours gives false for f(2,2,20,2,20,2)
    $endgroup$
    – H.PWiz
    50 mins ago










  • $begingroup$
    @H.PWiz Indeed! Thanks. :)
    $endgroup$
    – Arnauld
    43 mins ago















6












$begingroup$

JavaScript (ES7), 45 bytes



Fixed thanks to @H.PWiz



Returns $true$ if $a^b^c > d^e^f$, or $false$ otherwise.





(a,b,c,d,e,f)=>b**c*(l=Math.log)(a)>e**f*l(d)


Try it online!






share|improve this answer











$endgroup$








  • 1




    $begingroup$
    Eheh we had the same idea... and almost the same byte count :P
    $endgroup$
    – digEmAll
    1 hour ago






  • 4




    $begingroup$
    Shouldn't it be (a,b,c,d,e,f)=>b**c*(l=Math.log)(a)>e**f*l(d)? Yours gives false for f(2,2,20,2,20,2)
    $endgroup$
    – H.PWiz
    50 mins ago










  • $begingroup$
    @H.PWiz Indeed! Thanks. :)
    $endgroup$
    – Arnauld
    43 mins ago













6












6








6





$begingroup$

JavaScript (ES7), 45 bytes



Fixed thanks to @H.PWiz



Returns $true$ if $a^b^c > d^e^f$, or $false$ otherwise.





(a,b,c,d,e,f)=>b**c*(l=Math.log)(a)>e**f*l(d)


Try it online!






share|improve this answer











$endgroup$



JavaScript (ES7), 45 bytes



Fixed thanks to @H.PWiz



Returns $true$ if $a^b^c > d^e^f$, or $false$ otherwise.





(a,b,c,d,e,f)=>b**c*(l=Math.log)(a)>e**f*l(d)


Try it online!







share|improve this answer














share|improve this answer



share|improve this answer








edited 44 mins ago

























answered 1 hour ago









ArnauldArnauld

82.2k798338




82.2k798338







  • 1




    $begingroup$
    Eheh we had the same idea... and almost the same byte count :P
    $endgroup$
    – digEmAll
    1 hour ago






  • 4




    $begingroup$
    Shouldn't it be (a,b,c,d,e,f)=>b**c*(l=Math.log)(a)>e**f*l(d)? Yours gives false for f(2,2,20,2,20,2)
    $endgroup$
    – H.PWiz
    50 mins ago










  • $begingroup$
    @H.PWiz Indeed! Thanks. :)
    $endgroup$
    – Arnauld
    43 mins ago












  • 1




    $begingroup$
    Eheh we had the same idea... and almost the same byte count :P
    $endgroup$
    – digEmAll
    1 hour ago






  • 4




    $begingroup$
    Shouldn't it be (a,b,c,d,e,f)=>b**c*(l=Math.log)(a)>e**f*l(d)? Yours gives false for f(2,2,20,2,20,2)
    $endgroup$
    – H.PWiz
    50 mins ago










  • $begingroup$
    @H.PWiz Indeed! Thanks. :)
    $endgroup$
    – Arnauld
    43 mins ago







1




1




$begingroup$
Eheh we had the same idea... and almost the same byte count :P
$endgroup$
– digEmAll
1 hour ago




$begingroup$
Eheh we had the same idea... and almost the same byte count :P
$endgroup$
– digEmAll
1 hour ago




4




4




$begingroup$
Shouldn't it be (a,b,c,d,e,f)=>b**c*(l=Math.log)(a)>e**f*l(d)? Yours gives false for f(2,2,20,2,20,2)
$endgroup$
– H.PWiz
50 mins ago




$begingroup$
Shouldn't it be (a,b,c,d,e,f)=>b**c*(l=Math.log)(a)>e**f*l(d)? Yours gives false for f(2,2,20,2,20,2)
$endgroup$
– H.PWiz
50 mins ago












$begingroup$
@H.PWiz Indeed! Thanks. :)
$endgroup$
– Arnauld
43 mins ago




$begingroup$
@H.PWiz Indeed! Thanks. :)
$endgroup$
– Arnauld
43 mins ago











4












$begingroup$


R, 42 bytes





function(a,b,c,d,e,f)b^c*log(a)>e^f*log(d)


Try it online!



  • Fixed the "symmetry problem" thanks to @H.PWiz suggestion





share|improve this answer











$endgroup$








  • 4




    $begingroup$
    This is wrong for f(2,2,20,2,20,2)
    $endgroup$
    – H.PWiz
    49 mins ago










  • $begingroup$
    Fixed, using your suggestion to @Arnauld answer ;)
    $endgroup$
    – digEmAll
    23 mins ago















4












$begingroup$


R, 42 bytes





function(a,b,c,d,e,f)b^c*log(a)>e^f*log(d)


Try it online!



  • Fixed the "symmetry problem" thanks to @H.PWiz suggestion





share|improve this answer











$endgroup$








  • 4




    $begingroup$
    This is wrong for f(2,2,20,2,20,2)
    $endgroup$
    – H.PWiz
    49 mins ago










  • $begingroup$
    Fixed, using your suggestion to @Arnauld answer ;)
    $endgroup$
    – digEmAll
    23 mins ago













4












4








4





$begingroup$


R, 42 bytes





function(a,b,c,d,e,f)b^c*log(a)>e^f*log(d)


Try it online!



  • Fixed the "symmetry problem" thanks to @H.PWiz suggestion





share|improve this answer











$endgroup$




R, 42 bytes





function(a,b,c,d,e,f)b^c*log(a)>e^f*log(d)


Try it online!



  • Fixed the "symmetry problem" thanks to @H.PWiz suggestion






share|improve this answer














share|improve this answer



share|improve this answer








edited 18 mins ago

























answered 1 hour ago









digEmAlldigEmAll

3,664515




3,664515







  • 4




    $begingroup$
    This is wrong for f(2,2,20,2,20,2)
    $endgroup$
    – H.PWiz
    49 mins ago










  • $begingroup$
    Fixed, using your suggestion to @Arnauld answer ;)
    $endgroup$
    – digEmAll
    23 mins ago












  • 4




    $begingroup$
    This is wrong for f(2,2,20,2,20,2)
    $endgroup$
    – H.PWiz
    49 mins ago










  • $begingroup$
    Fixed, using your suggestion to @Arnauld answer ;)
    $endgroup$
    – digEmAll
    23 mins ago







4




4




$begingroup$
This is wrong for f(2,2,20,2,20,2)
$endgroup$
– H.PWiz
49 mins ago




$begingroup$
This is wrong for f(2,2,20,2,20,2)
$endgroup$
– H.PWiz
49 mins ago












$begingroup$
Fixed, using your suggestion to @Arnauld answer ;)
$endgroup$
– digEmAll
23 mins ago




$begingroup$
Fixed, using your suggestion to @Arnauld answer ;)
$endgroup$
– digEmAll
23 mins ago











3












$begingroup$


05AB1E, 11 9 bytes



εć.²š}P`›


Port of @Arnauld's JavaScript and @digEmAll's R approaches (I saw them post around the same time)

-2 bytes thanks to @Emigna



Input as [[a1,a2,a3],[b1,b2,b3]].



Try it online or verify all test cases.



Explanation:





ε # Map the (implicit) input-lists to:
ć # Extract the head; pushing the remainder and head separated to the stack
.² # Get the logarithm with base 2 of this head
š # And prepend it back to the remainder
}P # After the map: take the product of both mapped inner lists
` # Push both integers separated to the stack
› # And check if A is larger than B





share|improve this answer











$endgroup$








  • 1




    $begingroup$
    You second version can be εć.²š]P`›
    $endgroup$
    – Emigna
    1 hour ago











  • $begingroup$
    @Emigna Ah nice, I was looking at an approach with ć, but completely forgot about using š (not sure why now that I see it, haha). Thanks!
    $endgroup$
    – Kevin Cruijssen
    1 hour ago











  • $begingroup$
    This seems to be incorrect (because Arnauld's answer was incorrect until the recent fix).
    $endgroup$
    – Anush
    42 mins ago















3












$begingroup$


05AB1E, 11 9 bytes



εć.²š}P`›


Port of @Arnauld's JavaScript and @digEmAll's R approaches (I saw them post around the same time)

-2 bytes thanks to @Emigna



Input as [[a1,a2,a3],[b1,b2,b3]].



Try it online or verify all test cases.



Explanation:





ε # Map the (implicit) input-lists to:
ć # Extract the head; pushing the remainder and head separated to the stack
.² # Get the logarithm with base 2 of this head
š # And prepend it back to the remainder
}P # After the map: take the product of both mapped inner lists
` # Push both integers separated to the stack
› # And check if A is larger than B





share|improve this answer











$endgroup$








  • 1




    $begingroup$
    You second version can be εć.²š]P`›
    $endgroup$
    – Emigna
    1 hour ago











  • $begingroup$
    @Emigna Ah nice, I was looking at an approach with ć, but completely forgot about using š (not sure why now that I see it, haha). Thanks!
    $endgroup$
    – Kevin Cruijssen
    1 hour ago











  • $begingroup$
    This seems to be incorrect (because Arnauld's answer was incorrect until the recent fix).
    $endgroup$
    – Anush
    42 mins ago













3












3








3





$begingroup$


05AB1E, 11 9 bytes



εć.²š}P`›


Port of @Arnauld's JavaScript and @digEmAll's R approaches (I saw them post around the same time)

-2 bytes thanks to @Emigna



Input as [[a1,a2,a3],[b1,b2,b3]].



Try it online or verify all test cases.



Explanation:





ε # Map the (implicit) input-lists to:
ć # Extract the head; pushing the remainder and head separated to the stack
.² # Get the logarithm with base 2 of this head
š # And prepend it back to the remainder
}P # After the map: take the product of both mapped inner lists
` # Push both integers separated to the stack
› # And check if A is larger than B





share|improve this answer











$endgroup$




05AB1E, 11 9 bytes



εć.²š}P`›


Port of @Arnauld's JavaScript and @digEmAll's R approaches (I saw them post around the same time)

-2 bytes thanks to @Emigna



Input as [[a1,a2,a3],[b1,b2,b3]].



Try it online or verify all test cases.



Explanation:





ε # Map the (implicit) input-lists to:
ć # Extract the head; pushing the remainder and head separated to the stack
.² # Get the logarithm with base 2 of this head
š # And prepend it back to the remainder
}P # After the map: take the product of both mapped inner lists
` # Push both integers separated to the stack
› # And check if A is larger than B






share|improve this answer














share|improve this answer



share|improve this answer








edited 1 hour ago

























answered 1 hour ago









Kevin CruijssenKevin Cruijssen

43.5k573222




43.5k573222







  • 1




    $begingroup$
    You second version can be εć.²š]P`›
    $endgroup$
    – Emigna
    1 hour ago











  • $begingroup$
    @Emigna Ah nice, I was looking at an approach with ć, but completely forgot about using š (not sure why now that I see it, haha). Thanks!
    $endgroup$
    – Kevin Cruijssen
    1 hour ago











  • $begingroup$
    This seems to be incorrect (because Arnauld's answer was incorrect until the recent fix).
    $endgroup$
    – Anush
    42 mins ago












  • 1




    $begingroup$
    You second version can be εć.²š]P`›
    $endgroup$
    – Emigna
    1 hour ago











  • $begingroup$
    @Emigna Ah nice, I was looking at an approach with ć, but completely forgot about using š (not sure why now that I see it, haha). Thanks!
    $endgroup$
    – Kevin Cruijssen
    1 hour ago











  • $begingroup$
    This seems to be incorrect (because Arnauld's answer was incorrect until the recent fix).
    $endgroup$
    – Anush
    42 mins ago







1




1




$begingroup$
You second version can be εć.²š]P`›
$endgroup$
– Emigna
1 hour ago





$begingroup$
You second version can be εć.²š]P`›
$endgroup$
– Emigna
1 hour ago













$begingroup$
@Emigna Ah nice, I was looking at an approach with ć, but completely forgot about using š (not sure why now that I see it, haha). Thanks!
$endgroup$
– Kevin Cruijssen
1 hour ago





$begingroup$
@Emigna Ah nice, I was looking at an approach with ć, but completely forgot about using š (not sure why now that I see it, haha). Thanks!
$endgroup$
– Kevin Cruijssen
1 hour ago













$begingroup$
This seems to be incorrect (because Arnauld's answer was incorrect until the recent fix).
$endgroup$
– Anush
42 mins ago




$begingroup$
This seems to be incorrect (because Arnauld's answer was incorrect until the recent fix).
$endgroup$
– Anush
42 mins ago











2












$begingroup$


Wolfram Language (Mathematica), 23 bytes



#2^#3Log@#>#5^#6Log@#4&


Try it online!






share|improve this answer











$endgroup$












  • $begingroup$
    This doesn't terminate for a1=20, a2=20, a3=20.
    $endgroup$
    – Anush
    1 hour ago










  • $begingroup$
    @Anush fixed...
    $endgroup$
    – J42161217
    1 hour ago















2












$begingroup$


Wolfram Language (Mathematica), 23 bytes



#2^#3Log@#>#5^#6Log@#4&


Try it online!






share|improve this answer











$endgroup$












  • $begingroup$
    This doesn't terminate for a1=20, a2=20, a3=20.
    $endgroup$
    – Anush
    1 hour ago










  • $begingroup$
    @Anush fixed...
    $endgroup$
    – J42161217
    1 hour ago













2












2








2





$begingroup$


Wolfram Language (Mathematica), 23 bytes



#2^#3Log@#>#5^#6Log@#4&


Try it online!






share|improve this answer











$endgroup$




Wolfram Language (Mathematica), 23 bytes



#2^#3Log@#>#5^#6Log@#4&


Try it online!







share|improve this answer














share|improve this answer



share|improve this answer








edited 1 hour ago

























answered 1 hour ago









J42161217J42161217

14.4k21354




14.4k21354











  • $begingroup$
    This doesn't terminate for a1=20, a2=20, a3=20.
    $endgroup$
    – Anush
    1 hour ago










  • $begingroup$
    @Anush fixed...
    $endgroup$
    – J42161217
    1 hour ago
















  • $begingroup$
    This doesn't terminate for a1=20, a2=20, a3=20.
    $endgroup$
    – Anush
    1 hour ago










  • $begingroup$
    @Anush fixed...
    $endgroup$
    – J42161217
    1 hour ago















$begingroup$
This doesn't terminate for a1=20, a2=20, a3=20.
$endgroup$
– Anush
1 hour ago




$begingroup$
This doesn't terminate for a1=20, a2=20, a3=20.
$endgroup$
– Anush
1 hour ago












$begingroup$
@Anush fixed...
$endgroup$
– J42161217
1 hour ago




$begingroup$
@Anush fixed...
$endgroup$
– J42161217
1 hour ago











2












$begingroup$


05AB1E, 13 bytes



Uses the method from Arnauld's JS answer



2F.²IIm*ˆ}¯`›


Try it online!






share|improve this answer











$endgroup$












  • $begingroup$
    This doesn't terminate for a1=20, a2=20, a3=20.
    $endgroup$
    – Anush
    1 hour ago






  • 1




    $begingroup$
    @Anush: Seems to terminate in less than a second to me.
    $endgroup$
    – Emigna
    1 hour ago










  • $begingroup$
    you have to set all the variables to 20. See tio.run/##yy9OTMpM/f9f79Du3GK9Q6tzHzXs@v8/2shAB4xiuRBMAA
    $endgroup$
    – Anush
    1 hour ago










  • $begingroup$
    @Anush: Ah, you meant b1=b2=b3=20 ,yeah that doesn't terminate.
    $endgroup$
    – Emigna
    1 hour ago






  • 1




    $begingroup$
    @Anush: It is fixed now. Thanks for pointing out my mistake :)
    $endgroup$
    – Emigna
    1 hour ago















2












$begingroup$


05AB1E, 13 bytes



Uses the method from Arnauld's JS answer



2F.²IIm*ˆ}¯`›


Try it online!






share|improve this answer











$endgroup$












  • $begingroup$
    This doesn't terminate for a1=20, a2=20, a3=20.
    $endgroup$
    – Anush
    1 hour ago






  • 1




    $begingroup$
    @Anush: Seems to terminate in less than a second to me.
    $endgroup$
    – Emigna
    1 hour ago










  • $begingroup$
    you have to set all the variables to 20. See tio.run/##yy9OTMpM/f9f79Du3GK9Q6tzHzXs@v8/2shAB4xiuRBMAA
    $endgroup$
    – Anush
    1 hour ago










  • $begingroup$
    @Anush: Ah, you meant b1=b2=b3=20 ,yeah that doesn't terminate.
    $endgroup$
    – Emigna
    1 hour ago






  • 1




    $begingroup$
    @Anush: It is fixed now. Thanks for pointing out my mistake :)
    $endgroup$
    – Emigna
    1 hour ago













2












2








2





$begingroup$


05AB1E, 13 bytes



Uses the method from Arnauld's JS answer



2F.²IIm*ˆ}¯`›


Try it online!






share|improve this answer











$endgroup$




05AB1E, 13 bytes



Uses the method from Arnauld's JS answer



2F.²IIm*ˆ}¯`›


Try it online!







share|improve this answer














share|improve this answer



share|improve this answer








edited 15 mins ago

























answered 1 hour ago









EmignaEmigna

48.3k434147




48.3k434147











  • $begingroup$
    This doesn't terminate for a1=20, a2=20, a3=20.
    $endgroup$
    – Anush
    1 hour ago






  • 1




    $begingroup$
    @Anush: Seems to terminate in less than a second to me.
    $endgroup$
    – Emigna
    1 hour ago










  • $begingroup$
    you have to set all the variables to 20. See tio.run/##yy9OTMpM/f9f79Du3GK9Q6tzHzXs@v8/2shAB4xiuRBMAA
    $endgroup$
    – Anush
    1 hour ago










  • $begingroup$
    @Anush: Ah, you meant b1=b2=b3=20 ,yeah that doesn't terminate.
    $endgroup$
    – Emigna
    1 hour ago






  • 1




    $begingroup$
    @Anush: It is fixed now. Thanks for pointing out my mistake :)
    $endgroup$
    – Emigna
    1 hour ago
















  • $begingroup$
    This doesn't terminate for a1=20, a2=20, a3=20.
    $endgroup$
    – Anush
    1 hour ago






  • 1




    $begingroup$
    @Anush: Seems to terminate in less than a second to me.
    $endgroup$
    – Emigna
    1 hour ago










  • $begingroup$
    you have to set all the variables to 20. See tio.run/##yy9OTMpM/f9f79Du3GK9Q6tzHzXs@v8/2shAB4xiuRBMAA
    $endgroup$
    – Anush
    1 hour ago










  • $begingroup$
    @Anush: Ah, you meant b1=b2=b3=20 ,yeah that doesn't terminate.
    $endgroup$
    – Emigna
    1 hour ago






  • 1




    $begingroup$
    @Anush: It is fixed now. Thanks for pointing out my mistake :)
    $endgroup$
    – Emigna
    1 hour ago















$begingroup$
This doesn't terminate for a1=20, a2=20, a3=20.
$endgroup$
– Anush
1 hour ago




$begingroup$
This doesn't terminate for a1=20, a2=20, a3=20.
$endgroup$
– Anush
1 hour ago




1




1




$begingroup$
@Anush: Seems to terminate in less than a second to me.
$endgroup$
– Emigna
1 hour ago




$begingroup$
@Anush: Seems to terminate in less than a second to me.
$endgroup$
– Emigna
1 hour ago












$begingroup$
you have to set all the variables to 20. See tio.run/##yy9OTMpM/f9f79Du3GK9Q6tzHzXs@v8/2shAB4xiuRBMAA
$endgroup$
– Anush
1 hour ago




$begingroup$
you have to set all the variables to 20. See tio.run/##yy9OTMpM/f9f79Du3GK9Q6tzHzXs@v8/2shAB4xiuRBMAA
$endgroup$
– Anush
1 hour ago












$begingroup$
@Anush: Ah, you meant b1=b2=b3=20 ,yeah that doesn't terminate.
$endgroup$
– Emigna
1 hour ago




$begingroup$
@Anush: Ah, you meant b1=b2=b3=20 ,yeah that doesn't terminate.
$endgroup$
– Emigna
1 hour ago




1




1




$begingroup$
@Anush: It is fixed now. Thanks for pointing out my mistake :)
$endgroup$
– Emigna
1 hour ago




$begingroup$
@Anush: It is fixed now. Thanks for pointing out my mistake :)
$endgroup$
– Emigna
1 hour ago

















draft saved

draft discarded
















































If this is an answer to a challenge…



  • …Be sure to follow the challenge specification. However, please refrain from exploiting obvious loopholes. Answers abusing any of the standard loopholes are considered invalid. If you think a specification is unclear or underspecified, comment on the question instead.


  • …Try to optimize your score. For instance, answers to code-golf challenges should attempt to be as short as possible. You can always include a readable version of the code in addition to the competitive one.
    Explanations of your answer make it more interesting to read and are very much encouraged.


  • …Include a short header which indicates the language(s) of your code and its score, as defined by the challenge.


More generally…



  • …Please make sure to answer the question and provide sufficient detail.


  • …Avoid asking for help, clarification or responding to other answers (use comments instead).




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f184734%2fwhich-big-number-is-bigger%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Siegen Nawigatsjuun

Log på Navigationsmenu

Log på Navigationsmenu