File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -559,23 +559,20 @@ vector<bigint> posdivs(const bigint& number, const vector<bigint>& plist)
559559
560560vector<bigint> alldivs (const bigint& number)
561561{
562- const vector<bigint>& plist=pdivs (number);
563- return alldivs (number, plist);
562+ const vector<bigint>& plist=pdivs (number);
563+ return alldivs (number, plist);
564564}
565565
566566vector<bigint> alldivs (const bigint& number, const vector<bigint>& plist)
567567{
568- static const bigint one (1 );
569- vector<bigint> dlist = {one, -one};
570- for (auto p: plist)
571- dlist = multiply_lists (powers (p, val (p,number)), dlist);
572- return dlist;
568+ static const bigint one (1 );
569+ return multiply_lists (posdivs (number, plist), {one, -one});
573570}
574571
575572vector<bigint> sqdivs (const bigint& number)
576573{
577- const vector<bigint>& plist=pdivs (number);
578- return sqdivs (number, plist);
574+ const vector<bigint>& plist=pdivs (number);
575+ return sqdivs (number, plist);
579576}
580577
581578vector<bigint> sqdivs (const bigint& number, const vector<bigint>& plist)
You can’t perform that action at this time.
0 commit comments