Prime numbers

ℙ is the Unicode character “DOUBLE-STRUCK CAPITAL P” (U+2119). It is also known as prime numbers. It belongs to the Letterlike Symbols block and was added in Unicode 1.1. Click it to copy, or use the codes below.

ℙ codes

UnicodeCode point U+2119
HTML codeDecimal, works in any HTML page ℙ
HTML hexHexadecimal HTML code ℙ
CSSFor the CSS content property \2119
JavaScriptEscape in JavaScript strings \u2119
PythonEscape in Python strings \u2119
URL encodedPercent-encoded UTF-8 %E2%84%99
UTF-8Bytes in UTF-8 E2 84 99
UTF-16Code units in UTF-16 2119

How to type ℙ

Copy and paste

Click to copy it, then paste with Ctrl + V (⌘ + V on a Mac) or a long press on phones.

Windows

Press Win + . to open the emoji and symbol panel, then search for “prime numbers”.

In Microsoft Word, type 2119 and press Alt + X.

Mac

Press Control + ⌘ + Space to open the Character Viewer, then search for “prime numbers”.

iPhone and Android

Copy it here and paste it. To type it again later, save it as a text replacement (iPhone: Settings › General › Keyboard › Text Replacement; Gboard: Settings › Dictionary › Personal dictionary).

HTML and CSS

Unicode U+2119. Every format is on the prime numbers page.

About ℙ

Unicode name
DOUBLE-STRUCK CAPITAL P
Code point
U+2119 (8473)
Block
Letterlike Symbols
Category
Uppercase Letter
Unicode version
1.1