Tag Info

Hot answers tagged

2

Select[Range[23], GCD[24, #] == 1 &] {1, 5, 7, 11, 13, 17, 19, 23} This also works: Select[Range[23], CoprimeQ[24, #] &]


2

Using exact numbers or higher precision numbers gives the result that matches google's output: WolframAlpha["convert 1/4 miles to inches", {{"Result", 1}, "ComputableData"}] (* 15840 in *) WolframAlpha["convert .250 miles to inches", {{"Result", 1}, "ComputableData"}] (* 15840 in *) Another example: WolframAlpha["convert 1/5 miles to inches", ...


1

Don't know about Alpha but ... Range[24] // Select[CoprimeQ[#,24]&] {1, 5, 7, 11, 13, 17, 19, 23}



Only top voted, non community-wiki answers of a minimum length are eligible