Hide line numbers in latex algorithm

\documentclass{article}
\usepackage{algorithm,algpseudocode}
\algtext*{EndIf}% Remove \EndIf
\renewcommand{\thealgorithm}{}
\usepackage{amsmath,amssymb}
\begin{document}
\LinesNumberedHidden{
\begin{algorithm}
\caption{$Game PrvInd_{G,\phi}$}
\label{pseudoPSO}
\begin{algorithmic}[1]
\Procedure{Garble}{f_0, f_1, x)0, x1}

\If{$f(\phi(f0) \neq\phi(f1)$}
\Return $\perp$ \EndIf
\If {$ev(f_0, x_0) \neq ev(f_1, x_1)$}
\Return $\perp$ \EndIf
\If{$\{x_0,x_1\} \nsubseteq \{0,1\}^{{f_0}.n}$} \Return $\perp$ \EndIf
$(F, e, d) \leftarrow Gb(1^k, f_b)$;
$X \leftarrow En(e, x_b)$
\Return (F,X, d)
\EndProcedure

\end{algorithmic}
\end{algorithm}}
\end{document}


How to hide line numbering in latex algorithm?

• So I guess this answer helped? Undefined Control sequence for \IF Apr 24 '17 at 17:35
• The MWE produces undefined control sequence error for \LinesNumberedHidden and further errors due to the missing math in f_0, f_1, x)0, x1 Apr 24 '17 at 17:59
• Apr 24 '17 at 18:37
• \LinesNotNumbered also works Sep 2 at 1:33

Maybe you could remove the "[1]" in the line "\begin{algorithmic}[1]"?
• \LinesNumberedHidden seems to be a made up command Apr 24 '17 at 18:00