Search:

Type: Posts; User: szpengchao

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    2,307

    RSA C Program doesnt work

    #include <stdio.h>


    long GetPrivateKey(long m,long e){

    long k=1;

    while(1){

    k=k+1;
  2. Replies
    4
    Views
    2,425

    so i guess u mean, the algorithm is quicker for...

    so i guess u mean, the algorithm is quicker for 2^n than other numbers with the same number of digits???
  3. Replies
    4
    Views
    2,425

    prime factorisation program

    there is a question about making a program to find prime factorization.

    And it says : " Your algorithm must be quicker for some types of numbers than for others of similar size"

    i dont know...
  4. any standard C for Gaussian Elimination to turn a matrix into echelon form

    n*m matrix
    n<=10
    m<=10
  5. Replies
    7
    Views
    4,366

    what is the complexity of my C program?

    #include <stdio.h>

    main(){
    int ele,in,data[12],p,k;
    printf("enter your value for prime p:");
    scanf("%d",&p);
    for(ele=1;ele<=p-1;ele++){
    for(in=1;in<=p-1;in++){
    ...
  6. Replies
    5
    Views
    1,450

    maybe there is misunderstanding of the question....

    maybe there is misunderstanding of the question.
    i think, "in this way the distractions of performing real arithmetic accurately on the computer will be avoided." means p is a prime but not a...
  7. Replies
    5
    Views
    1,450

    but, how can u get rid of "the distractions of...

    but, how can u get rid of "the distractions of performing real arithmetic accurately"?
  8. Replies
    5
    Views
    1,450

    #include #include main(){...

    #include <stdio.h>
    #include <math.h>

    main(){
    int a,b,p;
    for(a=1;a<=p-1;a++){
    printf("&#37;d\t",a);
    for(b=1;b<=p-1;b++){
    if(a*b%p==1){
    printf("%d\n",b);
  9. Replies
    5
    Views
    1,450

    Horrible Program question

    see the attachment
    http://cboard.cprogramming.com/attachment.php?attachmentid=8292&stc=1&d=1217262034
Results 1 to 9 of 9