• generateur p1.mod(p2)

    From remy@21:1/5 to All on Tue Dec 22 14:07:41 2020
    hello

    take 2 prime numbers (p1)mod(p2) and change the two prime numbers

    cdl remy


    import java.util.*;
    import java.lang.*;
    import java.math.*;
    import java.io.*;


    public class gene
    {
    static FileOutputStream file;
    public static void main(String args[])
    {

    BigInteger p1,p2,tmpp1,tmpp2;
    String p;

    //initialisation if args[] is empy
    Random rnd = new Random();
    p1 = BigInteger.probablePrime(512, rnd);
    p2 = BigInteger.probablePrime(128, rnd);
    tmpp1=p1;
    tmpp2=p2;


    try {file=new FileOutputStream ("sortie08.bin");
    } catch (FileNotFoundException e){System.out.println(e);}

    while(true)
    {
    p=(p1.mod(p2)).toString(2);
    write(p.substring(0,p.length()-3));
    p1=newP(p1,p1.toString(2).length());
    p2=newP(p2,p2.toString(2).length());
    if(p1.toString(2).length()>1024)
    {p1 =newP(tmpp1,tmpp1.toString(2).length()/2);tmpp1=p1;} if(p2.toString(2).length()>256)
    {p2 =newP(tmpp2,tmpp2.toString(2).length()/2);tmpp2=p2;}

    }
    }

    public static void write(String p)
    {
    byte monByte;
    String t;
    int max=(int)p.length()/8-2;
    for(int i=0;i<max;i++)
    {
    t=p.substring(p.length()-(i+1)*8,p.length()-i*8);
    monByte = (byte)Integer.parseInt(t,2);
    System.out.println(t+" "+monByte);
    try {file.write(monByte);
    } catch (IOException e){System.out.println(e);}
    }

    }

    public static BigInteger newP(BigInteger p,int n )
    {
    BigInteger pow=new BigInteger("2");
    pow=pow.pow(n);
    p=p.add(pow);
    int qtTest=0;
    while(!p.isProbablePrime(100)){ p=p.add(pow);qtTest++;} //System.out.println("qt de test pour generer un nombre
    premier"+qtTest+" taille en base 2 "+p.toString(2).length());
    return p;
    }
    }

    --
    http://remyaumeunier.chez-alice.fr/
    toujours autant dyslexique

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From remy@21:1/5 to All on Mon Jan 11 10:34:16 2021
    Le 22/12/2020 à 14:07, remy a écrit :
    hello

    take 2 prime numbers (p1)mod(p2) and change the two prime numbers

    cdl remy


    import java.util.*;
    import java.lang.*;
    import java.math.*;
    import java.io.*;


    public class gene
    {
    static FileOutputStream file;
    public static void main(String args[])
    {

    BigInteger p1,p2,tmpp1,tmpp2;
    String p;

    //initialisation if args[] is empy
    Random rnd = new Random();
    p1 = BigInteger.probablePrime(512, rnd);
    p2 = BigInteger.probablePrime(128, rnd);
    tmpp1=p1;
    tmpp2=p2;


    try {file=new FileOutputStream ("sortie08.bin");
    } catch (FileNotFoundException e){System.out.println(e);}

    while(true)
    {
    p=(p1.mod(p2)).toString(2);
    write(p.substring(0,p.length()-3));
    p1=newP(p1,p1.toString(2).length());
    p2=newP(p2,p2.toString(2).length());
    if(p1.toString(2).length()>1024)
    {p1 =newP(tmpp1,tmpp1.toString(2).length()/2);tmpp1=p1;} if(p2.toString(2).length()>256)
    {p2 =newP(tmpp2,tmpp2.toString(2).length()/2);tmpp2=p2;}

    }
    }

    public static void write(String p)
    {
    byte monByte;
    String t;
    int max=(int)p.length()/8-2;
    for(int i=0;i<max;i++)
    {
    t=p.substring(p.length()-(i+1)*8,p.length()-i*8);
    monByte = (byte)Integer.parseInt(t,2);
    System.out.println(t+" "+monByte);
    try {file.write(monByte);
    } catch (IOException e){System.out.println(e);}
    }

    }

    public static BigInteger newP(BigInteger p,int n )
    {
    BigInteger pow=new BigInteger("2");
    pow=pow.pow(n);
    p=p.add(pow);
    int qtTest=0;
    while(!p.isProbablePrime(100)){ p=p.add(pow);qtTest++;} //System.out.println("qt de test pour generer un nombre
    premier"+qtTest+" taille en base 2 "+p.toString(2).length());
    return p;
    }
    }


    Hello
    I saw the result of the tests on a file

    cdl remy



    Value Char Occurrences Fraction

    0 47118 0.003871

    1 47218 0.003879

    2 47543 0.003906

    3 47683 0.003917

    4 47960 0.003940

    5 47019 0.003863

    6 47506 0.003903

    7 47650 0.003915

    8 47461 0.003899

    9 47660 0.003915

    10 47642 0.003914

    11 47710 0.003920

    12 47863 0.003932

    13 47442 0.003898

    14 47399 0.003894

    15 47221 0.003879

    16 47749 0.003923

    17 47310 0.003887

    18 47075 0.003867

    19 47843 0.003931

    20 47475 0.003900

    21 47354 0.003890

    22 47235 0.003881

    23 47810 0.003928

    24 47432 0.003897

    25 47958 0.003940

    26 47494 0.003902

    27 47789 0.003926

    28 47612 0.003912

    29 47413 0.003895

    30 47462 0.003899

    31 47576 0.003909

    32 47751 0.003923

    33 ! 47552 0.003907

    34 " 47592 0.003910

    35 # 47480 0.003901

    36 $ 47566 0.003908

    37 % 47078 0.003868

    38 & 47493 0.003902

    39 ' 47134 0.003872

    40 ( 47398 0.003894

    41 ) 47587 0.003909

    42 * 47291 0.003885

    43 + 47726 0.003921

    44 , 47506 0.003903

    45 - 47745 0.003922

    46 . 47653 0.003915

    47 / 47929 0.003938

    48 0 47628 0.003913

    49 1 47426 0.003896

    50 2 47755 0.003923

    51 3 47790 0.003926

    52 4 47603 0.003911

    53 5 47698 0.003919

    54 6 47184 0.003876

    55 7 47217 0.003879

    56 8 47605 0.003911

    57 9 47396 0.003894

    58 : 47378 0.003892

    59 ; 47583 0.003909

    60 < 47762 0.003924

    61 = 47351 0.003890

    62 > 47620 0.003912

    63 ? 47428 0.003896

    64 @ 47700 0.003919

    65 A 47494 0.003902

    66 B 47508 0.003903

    67 C 47850 0.003931

    68 D 47306 0.003886

    69 E 47659 0.003915

    70 F 47668 0.003916

    71 G 47522 0.003904

    72 H 47446 0.003898

    73 I 47369 0.003892

    74 J 47602 0.003911

    75 K 47514 0.003903

    76 L 47756 0.003923

    77 M 47876 0.003933

    78 N 47345 0.003890

    79 O 47429 0.003896

    80 P 47872 0.003933

    81 Q 47807 0.003928

    82 R 47513 0.003903

    83 S 47524 0.003904

    84 T 47348 0.003890

    85 U 47921 0.003937

    86 V 48021 0.003945

    87 W 47595 0.003910

    88 X 47936 0.003938

    89 Y 47534 0.003905

    90 Z 47845 0.003931

    91 [ 46976 0.003859

    92 \ 47364 0.003891

    93 ] 47713 0.003920

    94 ^ 47699 0.003919

    95 _ 47700 0.003919

    96 ` 47503 0.003903

    97 a 47267 0.003883

    98 b 47925 0.003937

    99 c 47918 0.003937

    100 d 47258 0.003882

    101 e 47570 0.003908

    102 f 47724 0.003921

    103 g 47514 0.003903

    104 h 47623 0.003912

    105 i 47320 0.003888

    106 j 47424 0.003896

    107 k 47249 0.003882

    108 l 47874 0.003933

    109 m 47418 0.003896

    110 n 47848 0.003931

    111 o 47666 0.003916

    112 p 47665 0.003916

    113 q 47654 0.003915

    114 r 47252 0.003882

    115 s 47732 0.003921

    116 t 47713 0.003920

    117 u 47246 0.003881

    118 v 47393 0.003894

    119 w 47537 0.003905

    120 x 47291 0.003885

    121 y 47610 0.003911

    122 z 47367 0.003891

    123 { 47087 0.003868

    124 | 47609 0.003911

    125 } 48039 0.003947

    126 ~ 47394 0.003894

    127 47797 0.003927

    128 47507 0.003903

    129 47681 0.003917

    130 47681 0.003917

    131 47489 0.003901

    132 48065 0.003949

    133 47689 0.003918

    134 47589 0.003910

    135 47569 0.003908

    136 47536 0.003905

    137 47567 0.003908

    138 47821 0.003929

    139 47569 0.003908

    140 47065 0.003867

    141 47207 0.003878

    142 47187 0.003877

    143 47440 0.003897

    144 47717 0.003920

    145 47351 0.003890

    146 47368 0.003891

    147 47712 0.003920

    148 47610 0.003911

    149 47463 0.003899

    150 47218 0.003879

    151 47275 0.003884

    152 47460 0.003899

    153 47305 0.003886

    154 47369 0.003892

    155 47440 0.003897

    156 47747 0.003923

    157 47666 0.003916

    158 47532 0.003905

    159 47743 0.003922

    160 47251 0.003882

    161 ¡ 47285 0.003885

    162 ¢ 47759 0.003924

    163 £ 47687 0.003918

    164 € 47644 0.003914

    165 ¥ 47665 0.003916

    166 Š 47572 0.003908

    167 § 47665 0.003916

    168 š 47523 0.003904

    169 © 47775 0.003925

    170 ª 47835 0.003930

    171 « 47851 0.003931

    172 ¬ 47605 0.003911

    173 ­ 47217 0.003879

    174 ® 47286 0.003885

    175 ¯ 47558 0.003907

    176 ° 47656 0.003915

    177 ± 47761 0.003924

    178 ² 47469 0.003900

    179 ³ 47353 0.003890

    180 Ž 47439 0.003897

    181 µ 47993 0.003943

    182 ¶ 47488 0.003901

    183 · 47782 0.003925

    184 ž 47933 0.003938

    185 ¹ 47500 0.003902

    186 º 47069 0.003867

    187 » 47626 0.003913

    188 Π47289 0.003885

    189 œ 47394 0.003894

    190 Ÿ 47393 0.003894

    191 ¿ 47600 0.003911

    192 À 47656 0.003915

    193 Á 47332 0.003889

    194 Â 47237 0.003881

    195 Ã 47403 0.003894

    196 Ä 47637 0.003914

    197 Å 47790 0.003926

    198 Æ 47882 0.003934

    199 Ç 47719 0.003920

    200 È 47158 0.003874

    201 É 47472 0.003900

    202 Ê 47310 0.003887

    203 Ë 47529 0.003905

    204 Ì 47603 0.003911

    205 Í 47604 0.003911

    206 Î 47461 0.003899

    207 Ï 47348 0.003890

    208 Ð 47049 0.003865

    209 Ñ 47109 0.003870

    210 Ò 47794 0.003926

    211 Ó 47366 0.003891

    212 Ô 47477 0.003900

    213 Õ 47855 0.003931

    214 Ö 47649 0.003915

    215 × 47604 0.003911

    216 Ø 47449 0.003898

    217 Ù 47545 0.003906

    218 Ú 47365 0.003891

    219 Û 47719 0.003920

    220 Ü 47722 0.003921

    221 Ý 47303 0.003886

    222 Þ 47367 0.003891

    223 ß 47646 0.003914

    224 à 47551 0.003907

    225 á 48100 0.003952

    226 â 47531 0.003905

    227 ã 47613 0.003912

    228 ä 47414 0.003895

    229 å 47553 0.003907

    230 æ 47447 0.003898

    231 ç 47693 0.003918

    232 è 47981 0.003942

    233 é 47752 0.003923

    234 ê 47475 0.003900

    235 ë 47263 0.003883

    236 ì 47804 0.003927

    237 í 47192 0.003877

    238 î 47602 0.003911

    239 ï 47773 0.003925

    240 ð 47340 0.003889

    241 ñ 47449 0.003898

    242 ò 47621 0.003912

    243 ó 47774 0.003925

    244 ô 47346 0.003890

    245 õ 47525 0.003904

    246 ö 47608 0.003911

    247 ÷ 47544 0.003906

    248 ø 47651 0.003915

    249 ù 47654 0.003915

    250 ú 47696 0.003918

    251 û 47705 0.003919

    252 ü 47657 0.003915

    253 ý 47623 0.003912

    254 þ 47397 0.003894

    255 ÿ 47684 0.003917



    Total: 12172225 1.000000



    Entropy = 7.999984 bits per byte.



    Optimum compression would reduce the size

    of this 12172225 byte file by 0 percent.



    Chi square distribution for 12172225 samples is 261.82, and randomly

    would exceed this value 37.12 percent of the times.



    Arithmetic mean value of data bytes is 127.5089 (127.5 = random).

    Monte Carlo value for Pi is 3.141666798 (error 0.00 percent).

    Serial correlation coefficient is 0.000326 (totally uncorrelated = 0.0).

    Value Char Occurrences Fraction

    0 47118 0.003871

    1 47218 0.003879

    2 47543 0.003906

    3 47683 0.003917

    4 47960 0.003940

    5 47019 0.003863

    6 47506 0.003903

    7 47650 0.003915

    8 47461 0.003899

    9 47660 0.003915

    10 47642 0.003914

    11 47710 0.003920

    12 47863 0.003932

    13 47442 0.003898

    14 47399 0.003894

    15 47221 0.003879

    16 47749 0.003923

    17 47310 0.003887

    18 47075 0.003867

    19 47843 0.003931

    20 47475 0.003900

    21 47354 0.003890

    22 47235 0.003881

    23 47810 0.003928

    24 47432 0.003897

    25 47958 0.003940

    26 47494 0.003902

    27 47789 0.003926

    28 47612 0.003912

    29 47413 0.003895

    30 47462 0.003899

    31 47576 0.003909

    32 47751 0.003923

    33 ! 47552 0.003907

    34 " 47592 0.003910

    35 # 47480 0.003901

    36 $ 47566 0.003908

    37 % 47078 0.003868

    38 & 47493 0.003902

    39 ' 47134 0.003872

    40 ( 47398 0.003894

    41 ) 47587 0.003909

    42 * 47291 0.003885

    43 + 47726 0.003921

    44 , 47506 0.003903

    45 - 47745 0.003922

    46 . 47653 0.003915

    47 / 47929 0.003938

    48 0 47628 0.003913

    49 1 47426 0.003896

    50 2 47755 0.003923

    51 3 47790 0.003926

    52 4 47603 0.003911

    53 5 47698 0.003919

    54 6 47184 0.003876

    55 7 47217 0.003879

    56 8 47605 0.003911

    57 9 47396 0.003894

    58 : 47378 0.003892

    59 ; 47583 0.003909

    60 < 47762 0.003924

    61 = 47351 0.003890

    62 > 47620 0.003912

    63 ? 47428 0.003896

    64 @ 47700 0.003919

    91 [ 46976 0.003859

    92 \ 47364 0.003891

    93 ] 47713 0.003920

    94 ^ 47699 0.003919

    95 _ 47700 0.003919

    96 ` 47503 0.003903

    97 a 94761 0.007785

    98 b 95433 0.007840

    99 c 95768 0.007868

    100 d 94564 0.007769

    101 e 95229 0.007823

    102 f 95392 0.007837

    103 g 95036 0.007808

    104 h 95069 0.007810

    105 i 94689 0.007779

    106 j 95026 0.007807

    107 k 94763 0.007785

    108 l 95630 0.007856

    109 m 95294 0.007829

    110 n 95193 0.007821

    111 o 95095 0.007812

    112 p 95537 0.007849

    113 q 95461 0.007843

    114 r 94765 0.007785

    115 s 95256 0.007826

    116 t 95061 0.007810

    117 u 95167 0.007818

    118 v 95414 0.007839

    119 w 95132 0.007815

    120 x 95227 0.007823

    121 y 95144 0.007816

    122 z 95212 0.007822

    123 { 47087 0.003868

    124 | 47609 0.003911

    125 } 48039 0.003947

    126 ~ 47394 0.003894

    127 47797 0.003927

    128 47507 0.003903

    129 47681 0.003917

    130 47681 0.003917

    131 47489 0.003901

    132 48065 0.003949

    133 47689 0.003918

    134 47589 0.003910

    135 47569 0.003908

    136 47536 0.003905

    137 47567 0.003908

    138 47821 0.003929

    139 47569 0.003908

    140 47065 0.003867

    141 47207 0.003878

    142 47187 0.003877

    143 47440 0.003897

    144 47717 0.003920

    145 47351 0.003890

    146 47368 0.003891

    147 47712 0.003920

    148 47610 0.003911

    149 47463 0.003899

    150 47218 0.003879

    151 47275 0.003884

    152 47460 0.003899

    153 47305 0.003886

    154 47369 0.003892

    155 47440 0.003897

    156 47747 0.003923

    157 47666 0.003916

    158 47532 0.003905

    159 47743 0.003922

    160 47251 0.003882

    161 ¡ 47285 0.003885

    162 ¢ 47759 0.003924

    163 £ 47687 0.003918

    164 € 47644 0.003914

    165 ¥ 47665 0.003916

    166 Š 47572 0.003908

    167 § 47665 0.003916

    168 š 47523 0.003904

    169 © 47775 0.003925

    170 ª 47835 0.003930

    171 « 47851 0.003931

    172 ¬ 47605 0.003911

    173 ­ 47217 0.003879

    174 ® 47286 0.003885

    175 ¯ 47558 0.003907

    176 ° 47656 0.003915

    177 ± 47761 0.003924

    178 ² 47469 0.003900

    179 ³ 47353 0.003890

    180 Ž 47439 0.003897

    181 µ 47993 0.003943

    182 ¶ 47488 0.003901

    183 · 47782 0.003925

    184 ž 47933 0.003938

    185 ¹ 47500 0.003902

    186 º 47069 0.003867

    187 » 47626 0.003913

    188 Π47289 0.003885

    189 œ 47394 0.003894

    190 Ÿ 47393 0.003894

    191 ¿ 47600 0.003911

    215 × 47604 0.003911

    223 ß 47646 0.003914

    224 à 95207 0.007822

    225 á 95432 0.007840

    226 â 94768 0.007786

    227 ã 95016 0.007806

    228 ä 95051 0.007809

    229 å 95343 0.007833

    230 æ 95329 0.007832

    231 ç 95412 0.007839

    232 è 95139 0.007816

    233 é 95224 0.007823

    234 ê 94785 0.007787

    235 ë 94792 0.007788

    236 ì 95407 0.007838

    237 í 94796 0.007788

    238 î 95063 0.007810

    239 ï 95121 0.007815

    240 ð 94389 0.007754

    241 ñ 94558 0.007768

    242 ò 95415 0.007839

    243 ó 95140 0.007816

    244 ô 94823 0.007790

    245 õ 95380 0.007836

    246 ö 95257 0.007826

    247 ÷ 47544 0.003906

    248 ø 95100 0.007813

    249 ù 95199 0.007821

    250 ú 95061 0.007810

    251 û 95424 0.007839

    252 ü 95379 0.007836

    253 ý 94926 0.007799

    254 þ 94764 0.007785

    255 ÿ 47684 0.003917



    Total: 12172225 1.000000



    Entropy = 7.562351 bits per byte.



    Optimum compression would reduce the size

    of this 12172225 byte file by 5 percent.



    Chi square distribution for 12172225 samples is 5328936.17, and randomly

    would exceed this value less than 0.01 percent of the times.



    Arithmetic mean value of data bytes is 134.5102 (127.5 = random).

    Monte Carlo value for Pi is 2.829796757 (error 9.92 percent).

    Serial correlation coefficient is 0.000112 (totally uncorrelated = 0.0).

    Entropy = 1.000000 bits per bit.



    Optimum compression would reduce the size

    of this 97377800 bit file by 0 percent.



    Chi square distribution for 97377800 samples is 0.36, and randomly

    would exceed this value 54.60 percent of the times.



    Arithmetic mean value of data bits is 0.5000 (0.5 = random).

    Monte Carlo value for Pi is 3.141666798 (error 0.00 percent).

    Serial correlation coefficient is -0.000039 (totally uncorrelated = 0.0).

    Value Char Occurrences Fraction

    0 48685921 0.499969

    1 48691879 0.500031



    Total: 97377800 1.000000



    Entropy = 1.000000 bits per bit.



    Optimum compression would reduce the size

    of this 97377800 bit file by 0 percent.



    Chi square distribution for 97377800 samples is 0.36, and randomly

    would exceed this value 54.60 percent of the times.



    Arithmetic mean value of data bits is 0.5000 (0.5 = random).

    Monte Carlo value for Pi is 3.141666798 (error 0.00 percent).

    Serial correlation coefficient is -0.000039 (totally uncorrelated = 0.0).

    0,File-bytes,Entropy,Chi-square,Mean,Monte-Carlo-Pi,Serial-Correlation

    1,12172225,7.999984,261.816058,127.508936,3.141667,0.000326

    0,File-bytes,Entropy,Chi-square,Mean,Monte-Carlo-Pi,Serial-Correlation

    1,12172225,7.999984,261.816058,127.508936,3.141667,0.000326

    2,Value,Occurrences,Fraction

    3,0,47118,0.003871

    3,1,47218,0.003879

    3,2,47543,0.003906

    3,3,47683,0.003917

    3,4,47960,0.003940

    3,5,47019,0.003863

    3,6,47506,0.003903

    3,7,47650,0.003915

    3,8,47461,0.003899

    3,9,47660,0.003915

    3,10,47642,0.003914

    3,11,47710,0.003920

    3,12,47863,0.003932

    3,13,47442,0.003898

    3,14,47399,0.003894

    3,15,47221,0.003879

    3,16,47749,0.003923

    3,17,47310,0.003887

    3,18,47075,0.003867

    3,19,47843,0.003931

    3,20,47475,0.003900

    3,21,47354,0.003890

    3,22,47235,0.003881

    3,23,47810,0.003928

    3,24,47432,0.003897

    3,25,47958,0.003940

    3,26,47494,0.003902

    3,27,47789,0.003926

    3,28,47612,0.003912

    3,29,47413,0.003895

    3,30,47462,0.003899

    3,31,47576,0.003909

    3,32,47751,0.003923

    3,33,47552,0.003907

    3,34,47592,0.003910

    3,35,47480,0.003901

    3,36,47566,0.003908

    3,37,47078,0.003868

    3,38,47493,0.003902

    3,39,47134,0.003872

    3,40,47398,0.003894

    3,41,47587,0.003909

    3,42,47291,0.003885

    3,43,47726,0.003921

    3,44,47506,0.003903

    3,45,47745,0.003922

    3,46,47653,0.003915

    3,47,47929,0.003938

    3,48,47628,0.003913

    3,49,47426,0.003896

    3,50,47755,0.003923

    3,51,47790,0.003926

    3,52,47603,0.003911

    3,53,47698,0.003919

    3,54,47184,0.003876

    3,55,47217,0.003879

    3,56,47605,0.003911

    3,57,47396,0.003894

    3,58,47378,0.003892

    3,59,47583,0.003909

    3,60,47762,0.003924

    3,61,47351,0.003890

    3,62,47620,0.003912

    3,63,47428,0.003896

    3,64,47700,0.003919

    3,65,47494,0.003902

    3,66,47508,0.003903

    3,67,47850,0.003931

    3,68,47306,0.003886

    3,69,47659,0.003915

    3,70,47668,0.003916

    3,71,47522,0.003904

    3,72,47446,0.003898

    3,73,47369,0.003892

    3,74,47602,0.003911

    3,75,47514,0.003903

    3,76,47756,0.003923

    3,77,47876,0.003933

    3,78,47345,0.003890

    3,79,47429,0.003896

    3,80,47872,0.003933

    3,81,47807,0.003928

    3,82,47513,0.003903

    3,83,47524,0.003904

    3,84,47348,0.003890

    3,85,47921,0.003937

    3,86,48021,0.003945

    3,87,47595,0.003910

    3,88,47936,0.003938

    3,89,47534,0.003905

    3,90,47845,0.003931

    3,91,46976,0.003859

    3,92,47364,0.003891

    3,93,47713,0.003920

    3,94,47699,0.003919

    3,95,47700,0.003919

    3,96,47503,0.003903

    3,97,47267,0.003883

    3,98,47925,0.003937

    3,99,47918,0.003937

    3,100,47258,0.003882

    3,101,47570,0.003908

    3,102,47724,0.003921

    3,103,47514,0.003903

    3,104,47623,0.003912

    3,105,47320,0.003888

    3,106,47424,0.003896

    3,107,47249,0.003882

    3,108,47874,0.003933

    3,109,47418,0.003896

    3,110,47848,0.003931

    3,111,47666,0.003916

    3,112,47665,0.003916

    3,113,47654,0.003915

    3,114,47252,0.003882

    3,115,47732,0.003921

    3,116,47713,0.003920

    3,117,47246,0.003881

    3,118,47393,0.003894

    3,119,47537,0.003905

    3,120,47291,0.003885

    3,121,47610,0.003911

    3,122,47367,0.003891

    3,123,47087,0.003868

    3,124,47609,0.003911

    3,125,48039,0.003947

    3,126,47394,0.003894

    3,127,47797,0.003927

    3,128,47507,0.003903

    3,129,47681,0.003917

    3,130,47681,0.003917

    3,131,47489,0.003901

    3,132,48065,0.003949

    3,133,47689,0.003918

    3,134,47589,0.003910

    3,135,47569,0.003908

    3,136,47536,0.003905

    3,137,47567,0.003908

    3,138,47821,0.003929

    3,139,47569,0.003908

    3,140,47065,0.003867

    3,141,47207,0.003878

    3,142,47187,0.003877

    3,143,47440,0.003897

    3,144,47717,0.003920

    3,145,47351,0.003890

    3,146,47368,0.003891

    3,147,47712,0.003920

    3,148,47610,0.003911

    3,149,47463,0.003899

    3,150,47218,0.003879

    3,151,47275,0.003884

    3,152,47460,0.003899

    3,153,47305,0.003886

    3,154,47369,0.003892

    3,155,47440,0.003897

    3,156,47747,0.003923

    3,157,47666,0.003916

    3,158,47532,0.003905

    3,159,47743,0.003922

    3,160,47251,0.003882

    3,161,47285,0.003885

    3,162,47759,0.003924

    3,163,47687,0.003918

    3,164,47644,0.003914

    3,165,47665,0.003916

    3,166,47572,0.003908

    3,167,47665,0.003916

    3,168,47523,0.003904

    3,169,47775,0.003925

    3,170,47835,0.003930

    3,171,47851,0.003931

    3,172,47605,0.003911

    3,173,47217,0.003879

    3,174,47286,0.003885

    3,175,47558,0.003907

    3,176,47656,0.003915

    3,177,47761,0.003924

    3,178,47469,0.003900

    3,179,47353,0.003890

    3,180,47439,0.003897

    3,181,47993,0.003943

    3,182,47488,0.003901

    3,183,47782,0.003925

    3,184,47933,0.003938

    3,185,47500,0.003902

    3,186,47069,0.003867

    3,187,47626,0.003913

    3,188,47289,0.003885

    3,189,47394,0.003894

    3,190,47393,0.003894

    3,191,47600,0.003911

    3,192,47656,0.003915

    3,193,47332,0.003889

    3,194,47237,0.003881

    3,195,47403,0.003894

    3,196,47637,0.003914

    3,197,47790,0.003926

    3,198,47882,0.003934

    3,199,47719,0.003920

    3,200,47158,0.003874

    3,201,47472,0.003900

    3,202,47310,0.003887

    3,203,47529,0.003905

    3,204,47603,0.003911

    3,205,47604,0.003911

    3,206,47461,0.003899

    3,207,47348,0.003890

    3,208,47049,0.003865

    3,209,47109,0.003870

    3,210,47794,0.003926

    3,211,47366,0.003891

    3,212,47477,0.003900

    3,213,47855,0.003931

    3,214,47649,0.003915

    3,215,47604,0.003911

    3,216,47449,0.003898

    3,217,47545,0.003906

    3,218,47365,0.003891

    3,219,47719,0.003920

    3,220,47722,0.003921

    3,221,47303,0.003886

    3,222,47367,0.003891

    3,223,47646,0.003914

    3,224,47551,0.003907

    3,225,48100,0.003952

    3,226,47531,0.003905

    3,227,47613,0.003912

    3,228,47414,0.003895

    3,229,47553,0.003907

    3,230,47447,0.003898

    3,231,47693,0.003918

    3,232,47981,0.003942

    3,233,47752,0.003923

    3,234,47475,0.003900

    3,235,47263,0.003883

    3,236,47804,0.003927

    3,237,47192,0.003877

    3,238,47602,0.003911

    3,239,47773,0.003925

    3,240,47340,0.003889

    3,241,47449,0.003898

    3,242,47621,0.003912

    3,243,47774,0.003925

    3,244,47346,0.003890

    3,245,47525,0.003904

    3,246,47608,0.003911

    3,247,47544,0.003906

    3,248,47651,0.003915

    3,249,47654,0.003915

    3,250,47696,0.003918

    3,251,47705,0.003919

    3,252,47657,0.003915

    3,253,47623,0.003912

    3,254,47397,0.003894

    3,255,47684,0.003917

    0,File-bytes,Entropy,Chi-square,Mean,Monte-Carlo-Pi,Serial-Correlation

    1,12172225,7.562351,5328936.169205,134.510240,2.829797,0.000112

    0,File-bits,Entropy,Chi-square,Mean,Monte-Carlo-Pi,Serial-Correlation

    1,97377800,1.000000,0.364537,0.500031,3.141667,-0.000039

    0,File-bits,Entropy,Chi-square,Mean,Monte-Carlo-Pi,Serial-Correlation

    1,97377800,1.000000,0.364537,0.500031,3.141667,-0.000039

    2,Value,Occurrences,Fraction

    3,0,48685921,0.499969

    3,1,48691879,0.500031

    --
    http://remyaumeunier.chez-alice.fr/
    toujours autant dyslexique

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nomen Nescio@21:1/5 to All on Sun Apr 10 04:02:18 2022
    ton programme java est-il autant dyslexique que toi ?


    "remy" <remy@fctpas.fr> a crit dans le message de news: 5fe1ef9a$0$3263$426a74cc@news.free.fr...
    hello

    take 2 prime numbers (p1)mod(p2) and change the two prime numbers

    cdl remy


    import java.util.*;
    import java.lang.*;
    import java.math.*;
    import java.io.*;


    public class gene
    {
    static FileOutputStream file;
    public static void main(String args[])
    {

    BigInteger p1,p2,tmpp1,tmpp2;
    String p;

    //initialisation if args[] is empy
    Random rnd = new Random();
    p1 = BigInteger.probablePrime(512, rnd);
    p2 = BigInteger.probablePrime(128, rnd);
    tmpp1=p1;
    tmpp2=p2;


    try {file=new FileOutputStream ("sortie08.bin");
    } catch (FileNotFoundException e){System.out.println(e);}

    while(true)
    {
    p=(p1.mod(p2)).toString(2);
    write(p.substring(0,p.length()-3));
    p1=newP(p1,p1.toString(2).length());
    p2=newP(p2,p2.toString(2).length());
    if(p1.toString(2).length()>1024)
    {p1 =newP(tmpp1,tmpp1.toString(2).length()/2);tmpp1=p1;} if(p2.toString(2).length()>256)
    {p2 =newP(tmpp2,tmpp2.toString(2).length()/2);tmpp2=p2;}

    }
    }

    public static void write(String p)
    {
    byte monByte;
    String t;
    int max=(int)p.length()/8-2;
    for(int i=0;i<max;i++)
    {
    t=p.substring(p.length()-(i+1)*8,p.length()-i*8);
    monByte = (byte)Integer.parseInt(t,2);
    System.out.println(t+" "+monByte);
    try {file.write(monByte);
    } catch (IOException e){System.out.println(e);}
    }

    }

    public static BigInteger newP(BigInteger p,int n )
    {
    BigInteger pow=new BigInteger("2");
    pow=pow.pow(n);
    p=p.add(pow);
    int qtTest=0;
    while(!p.isProbablePrime(100)){ p=p.add(pow);qtTest++;} //System.out.println("qt de test pour generer un nombre premier"+qtTest+" taille en base 2 "+p.toString(2).length());
    return p;
    }
    }

    --
    http://remyaumeunier.chez-alice.fr/
    toujours autant dyslexique

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)