# How to write numbers with a vertical line crossed on the corner?

How to write this 2? I tried to google it but I cannot find any solution...

Based on comments and suggestions below your question, one can use the bbold package to achieve the desired output.
\documentclass{article}
$\mathbb 2^{\mathcal U}$

Running it with pdflatex produces