| 1125 | // ------------------------------------------------ |
| 1126 | |
| 1127 | std::string Int::GetBase2() { |
| 1128 | |
| 1129 | char ret[1024]; |
| 1130 | int k=0; |
| 1131 | |
| 1132 | for(int i=0;i<NB32BLOCK-1;i++) { |
| 1133 | unsigned int mask=0x80000000; |
| 1134 | for(int j=0;j<32;j++) { |
| 1135 | if(bits[i]&mask) ret[k]='1'; |
| 1136 | else ret[k]='0'; |
| 1137 | k++; |
| 1138 | mask=mask>>1; |
| 1139 | } |
| 1140 | } |
| 1141 | ret[k]=0; |
| 1142 | |
| 1143 | return std::string(ret); |
| 1144 | |
| 1145 | } |
| 1146 | |
| 1147 | bool Int::IsProbablePrime() { |
| 1148 |
nothing calls this directly
no outgoing calls
no test coverage detected