Nerdulator> put something in

Number

2

  • Positive
  • Even
  • Prime
  • 1 digit

2 is an even 1-digit integer and a prime number. It has 2 divisors and a digital root of 2.

Number properties

ParityEvendivisible by 2
SignPositive
PrimalityPrime
Absolute value2
Digit count1
Digit sum2
Digital root2repeated digit sum
PalindromicYesreads the same backwards
Fibonacci numberYes, F(3)
Happy numberNosquared-digit sums reach 1
Harshad numberYesdivisible by its own digit sum
Armstrong numberYesdigits raised to the digit count sum to itself

Factors & divisors

Prime factorisation2
Distinct prime factors12
Number of divisors2
Sum of divisors σ(n)3
Aliquot sum1sum of the proper divisors
ClassificationDeficientthe aliquot sum is less than the number
Euler's totient φ(n)1integers below n that share no factor with it
SquarefreeYesno repeated prime factor
All divisors1, 22 in total

Arithmetic

Previous number1
Next number3
Double4
Half1
Square4
Cube8
Square root1.414213562irrational, shown to 9 decimal places
Cube root1.25992105
Negation-2
Reciprocal0.5
2 factorial2

Representations

Decimal2
Binary102 bits
Octal2
Hexadecimal2
Base 362
Roman numeralII
In wordstwo
Ordinalsecond
Scientific notation2 × 10^0
Engineering notation2

Nearest landmarks

Next prime3+1
Nearest square below1
Nearest square above4

Powers & multiples

2 to the power 24
2 to the power 38
2 to the power 416
2 to the power 532
First ten multiples2, 4, 6, 8, 10, 12, 14, 16, 18, 20
Powers of twoExactly 2^1

Divisibility tests

Divisible by 2Yes
Divisible by 3No, remainder 2
Divisible by 4No, remainder 2
Divisible by 5No, remainder 2
Divisible by 6No, remainder 2
Divisible by 7No, remainder 2
Divisible by 8No, remainder 2
Divisible by 9No, remainder 2
Divisible by 10No, remainder 2
Divisible by 11No, remainder 2
Divisible by 12No, remainder 2
Divisible by 100No, remainder 2

Collatz (3n + 1) trajectory

Steps to reach 11the total stopping time
Highest value reached2
Reaches 1Yesthe Collatz conjecture says every positive integer does, but it is unproven
First steps2 → 1

As a percentage & fraction

As a percentage200%
2% as a decimal0.02
2% of 1002
2% of 1,00020
As a fraction of 1002/100

Read another way

As seconds2 seconds
As bytes2 B
As a 24-bit colour#000002

Keep nerding

Every link below is a page Nerdulator can generate from what it already knows about this value.

Also reads as

U+0032 (unicode character)

  • U+0032
  • 2
  • Decimal digit

U+0032 is code point 50 (2), a decimal digit in the Basic Latin (ASCII) block of the Basic Multilingual Plane. It takes 1 byte in UTF-8 and 1 unit in UTF-16.

Open this reading on its own page →

Identity

Code pointU+0032
Decimal50
Character2
General categoryDecimal digit
BlockBasic Latin (ASCII)
PlaneBasic Multilingual Planeplane 0
Official nameNot includedthe Unicode Character Database is not bundled; a stale copy would be worse than none

Encodings

UTF-8321 byte
UTF-160032a single unit
UTF-3200000032
Binary110010
Bytes in UTF-8 vs UTF-161 vs 2UTF-16 is not always smaller, even for non-Latin text

Writing it in code

HTML numeric entity2
HTML hex entity2
CSS escape\0032
JavaScript\u0032
Python\u0032
Percent-encoded (URL)%32

Things that catch people out

JavaScript string length1
Needs a surrogate pairNo
Safe in a URL unescapedYes

Keep nerding

Every link below is a page Nerdulator can generate from what it already knows about this value.

Nearby code points

Nerdulate something else

Nothing in mind? Surprise me · today’s page

Every value on this page was computed from “2” by Nerdulator’s number engine. Nothing here was retrieved from a database of answers or written by a model.