Cuban primes: Difference between revisions

m
→‎{{header|REXX}}: reduced the font size for the first output.
(→‎{{header|REXX}}: added additional text to the REXX section header, dropped primality test, used factorization by 6K + 1.)
m (→‎{{header|REXX}}: reduced the font size for the first output.)
Line 1,437:
commas: parse arg _; do jc=length(_)-3 to 1 by -3; _=insert(',', _, jc); end; return _</lang>
{{out|output|text=&nbsp; when using the default input of: &nbsp; &nbsp; <tt> 200 </tt>}}
 
<pre>
(Shown at three-quarter size.)
7 19 37 61 127 271 331 397 547 631 919 1,657 1,801 1,951 2,269 2,437 2,791 3,169 3,571 4,219 4,447 5,167 5,419 6,211 7,057 7,351
 
8,269 9,241 10,267 11,719 12,097 13,267 13,669 16,651 19,441 19,927 22,447 23,497 24,571 25,117 26,227 27,361 33,391 35,317
<pre style="font-size:75%">
42,841 45,757 47,251 49,537 50,311 55,897 59,221 60,919 65,269 70,687 73,477 74,419 75,367 81,181 82,171 87,211 88,237 89,269
7 19 37 61 127 271 331 397 547 631 919 1,657 1,801 1,951 2,269 2,437 2,791 3,169 3,571 4,219 4,447 5,167 5,419 6,211 7,057 7,351 8,269 9,241 10,267
92,401 96,661 102,121 103,231 104,347 110,017 112,327 114,661 115,837 126,691 129,169 131,671 135,469 140,617 144,541 145,861
15111,201719 15512,269097 16313,567267 16913,219669 17016,647651 17619,419441 18019,811927 18922,757447 20023,467497 20224,021571 21325,067117 23126,019227 23427,361 24133,117391 24635,247317 42,841 45,757 47,251 49,537 50,311 55,431897
26059,191221 26360,737919 26765,307269 27670,337687 27973,991477 28374,669419 28575,517367 29281,969181 29682,731171 29887,621211 31088,087237 32989,677269 33392,667401 33796,681661 102,121 103,231 104,347 110,821017 351112,919327 114,661
360115,187837 368126,551691 372129,769169 374131,887671 377135,011469 383140,419617 387144,721541 398145,581861 407151,377201 423155,001269 436163,627567 452169,797219 170,647 176,419 459180,817811 476189,407757 478200,801467 493202,291021
522213,919067 527231,941019 553234,411361 574241,219117 584246,767247 590251,077431 592260,741191 595263,411737 603267,457307 608276,851337 611279,557991 619283,711669 627285,919517 650292,071969 658296,477731 666298,937621 310,087 329,677
689333,761667 692337,641681 698347,419821 707351,131919 733360,591187 742368,519551 760372,537 769 374,627887 772377,669011 784383,897419 791387,047721 812398,761581 825407,301377 423,001 436,627 837452,937797 847459,477817 863476,497407
879478,667801 886493,177291 895522,987919 909527,151941 915553,769411 925574,741219 929584,767 590,077 932592,419741 939595,121411 952603,597457 972608,991851 976611,411557 986619,707711 990627,151919 997650,057071 1658,021477 666,417937
689,761 692,641 698,419 707,131 733,591 742,519 760,537 769,627 772,669 784,897 791,047 812,761 825,301 837,937 847,477 863,497 879,667 886,177
1,024,921 1,035,469 1,074,607 1,085,407 1,110,817 1,114,471 1,125,469 1,155,061 1,177,507 1,181,269 1,215,397 1,253,887 1,281,187
1895,285987 909,111151 1915,324769 925,681741 1929,328077 932,671419 1939,372121 952,957597 1,409972,731991 1976,422,097411 1986,426,231707 1990,442,827151 1,451997,161057 1,480021,519417 1,484024,737921 1,527035,247469 1,570074,357607
1,024,921 1,035,469 1,074,607 1,085,407 1,110,817 1,114,471 1,125,469 1,155,061 1,177,507 1,181,269 1,215,397 1,253,887 1,281,187 1,285,111 1,324,681 1,328,671 1,372,957 1,409,731
1,422,097 1,426,231 1,442,827 1,451,161 1,480,519 1,484,737 1,527,247 1,570,357
</pre>
{{out|output|text=&nbsp; when using the input of: &nbsp; &nbsp; <tt> -100000 </tt>}}