|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://functions.wolfram.com/13.03.06.0009.01
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Prime[n] ==
2 +
Sum[
1 - Floor[(1/n) Sum[1 + Floor[(2 - Sum[Floor[j/i] - Floor[(j - 1)/i],
{i, 1, j}])/j], {j, 2, k}]], {k, 2, Floor[2 n Log[n] + 2]}]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Cell[BoxData[RowBox[List[RowBox[List["Prime", "[", "n", "]"]], "\[Equal]", RowBox[List["2", "+", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "2"]], RowBox[List["\[LeftFloor]", RowBox[List[RowBox[List["2", "n", " ", RowBox[List["Log", "[", "n", "]"]]]], "+", "2"]], "\[RightFloor]"]]], RowBox[List["(", RowBox[List["1", "-", RowBox[List["\[LeftFloor]", RowBox[List[FractionBox["1", "n"], RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["j", "=", "2"]], "k"], RowBox[List["(", RowBox[List["1", "+", RowBox[List["\[LeftFloor]", FractionBox[RowBox[List["2", "-", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["i", "=", "1"]], "j"], RowBox[List["(", RowBox[List[RowBox[List["\[LeftFloor]", FractionBox["j", "i"], "\[RightFloor]"]], "-", RowBox[List["\[LeftFloor]", FractionBox[RowBox[List["j", "-", "1"]], "i"], "\[RightFloor]"]]]], ")"]]]]]], "j"], "\[RightFloor]"]]]], ")"]]]]]], "\[RightFloor]"]]]], ")"]]]]]]]]]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<math xmlns='http://www.w3.org/1998/Math/MathML' mathematica:form='TraditionalForm' xmlns:mathematica='http://www.wolfram.com/XML/'> <semantics> <mrow> <mrow> <mi> prime </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> n </mi> <mo> ) </mo> </mrow> <mo> ⩵ </mo> <mrow> <mn> 2 </mn> <mo> + </mo> <mrow> <munderover> <mo> ∑ </mo> <mrow> <mi> k </mi> <mo> = </mo> <mn> 2 </mn> </mrow> <mrow> <mo> ⌊ </mo> <mrow> <mrow> <mn> 2 </mn> <mo> ⁢ </mo> <mi> n </mi> <mo> ⁢ </mo> <mrow> <mi> log </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> n </mi> <mo> ) </mo> </mrow> </mrow> <mo> + </mo> <mn> 2 </mn> </mrow> <mo> ⌋ </mo> </mrow> </munderover> <mrow> <mo> ( </mo> <mrow> <mn> 1 </mn> <mo> - </mo> <mrow> <mo> ⌊ </mo> <mrow> <mfrac> <mn> 1 </mn> <mi> n </mi> </mfrac> <mo> ⁢ </mo> <mrow> <munderover> <mo> ∑ </mo> <mrow> <mi> j </mi> <mo> = </mo> <mn> 2 </mn> </mrow> <mi> k </mi> </munderover> <mrow> <mo> ( </mo> <mrow> <mrow> <mo> ⌊ </mo> <mfrac> <mrow> <mn> 2 </mn> <mo> - </mo> <mrow> <munderover> <mo> ∑ </mo> <mrow> <mi> i </mi> <mo> = </mo> <mn> 1 </mn> </mrow> <mi> j </mi> </munderover> <mrow> <mo> ( </mo> <mrow> <mrow> <mo> ⌊ </mo> <mfrac> <mi> j </mi> <mi> i </mi> </mfrac> <mo> ⌋ </mo> </mrow> <mo> - </mo> <mrow> <mo> ⌊ </mo> <mfrac> <mrow> <mi> j </mi> <mo> - </mo> <mn> 1 </mn> </mrow> <mi> i </mi> </mfrac> <mo> ⌋ </mo> </mrow> </mrow> <mo> ) </mo> </mrow> </mrow> </mrow> <mi> j </mi> </mfrac> <mo> ⌋ </mo> </mrow> <mo> + </mo> <mn> 1 </mn> </mrow> <mo> ) </mo> </mrow> </mrow> </mrow> <mo> ⌋ </mo> </mrow> </mrow> <mo> ) </mo> </mrow> </mrow> </mrow> </mrow> <annotation-xml encoding='MathML-Content'> <apply> <eq /> <apply> <ci> prime </ci> <ci> n </ci> </apply> <apply> <plus /> <cn type='integer'> 2 </cn> <apply> <sum /> <bvar> <ci> k </ci> </bvar> <lowlimit> <cn type='integer'> 2 </cn> </lowlimit> <uplimit> <apply> <floor /> <apply> <plus /> <apply> <times /> <cn type='integer'> 2 </cn> <ci> n </ci> <apply> <ln /> <ci> n </ci> </apply> </apply> <cn type='integer'> 2 </cn> </apply> </apply> </uplimit> <apply> <plus /> <cn type='integer'> 1 </cn> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <floor /> <apply> <times /> <apply> <times /> <cn type='integer'> 1 </cn> <apply> <power /> <ci> n </ci> <cn type='integer'> -1 </cn> </apply> </apply> <apply> <sum /> <bvar> <ci> j </ci> </bvar> <lowlimit> <cn type='integer'> 2 </cn> </lowlimit> <uplimit> <ci> k </ci> </uplimit> <apply> <plus /> <apply> <floor /> <apply> <times /> <apply> <plus /> <cn type='integer'> 2 </cn> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <sum /> <bvar> <ci> i </ci> </bvar> <lowlimit> <cn type='integer'> 1 </cn> </lowlimit> <uplimit> <ci> j </ci> </uplimit> <apply> <plus /> <apply> <floor /> <apply> <times /> <ci> j </ci> <apply> <power /> <ci> i </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <floor /> <apply> <times /> <apply> <plus /> <ci> j </ci> <cn type='integer'> -1 </cn> </apply> <apply> <power /> <ci> i </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </apply> </apply> </apply> </apply> </apply> <apply> <power /> <ci> j </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> <cn type='integer'> 1 </cn> </apply> </apply> </apply> </apply> </apply> </apply> </apply> </apply> </apply> </annotation-xml> </semantics> </math>
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| Cell[BoxData[RowBox[List[RowBox[List["HoldPattern", "[", RowBox[List["Prime", "[", "n_", "]"]], "]"]], "\[RuleDelayed]", RowBox[List["2", "+", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "2"]], RowBox[List["Floor", "[", RowBox[List[RowBox[List["2", " ", "n", " ", RowBox[List["Log", "[", "n", "]"]]]], "+", "2"]], "]"]]], RowBox[List["(", RowBox[List["1", "-", RowBox[List["Floor", "[", FractionBox[RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["j", "=", "2"]], "k"], RowBox[List["(", RowBox[List["1", "+", RowBox[List["Floor", "[", FractionBox[RowBox[List["2", "-", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["i", "=", "1"]], "j"], RowBox[List["(", RowBox[List[RowBox[List["Floor", "[", FractionBox["j", "i"], "]"]], "-", RowBox[List["Floor", "[", FractionBox[RowBox[List["j", "-", "1"]], "i"], "]"]]]], ")"]]]]]], "j"], "]"]]]], ")"]]]], "n"], "]"]]]], ")"]]]]]]]]]] |
|
|
|
|
|
|
|
|
|
|
Date Added to functions.wolfram.com (modification date)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|