Skip to content

Commit 482ba66

Browse files
comma-separated env. var.
1 parent ec7e8f7 commit 482ba66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

FindAFactor/find_a_factor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def find_a_factor(n,
1818
smoothness_bound_multiplier=float(os.environ.get('FINDAFACTOR_SMOOTHNESS_BOUND_MULTIPLIER')) if os.environ.get('FINDAFACTOR_SMOOTHNESS_BOUND_MULTIPLIER') else 1.0,
1919
gaussian_elimination_row_offset=int(os.environ.get('FINDAFACTOR_GAUSSIAN_ELIMINATION_ROW_OFFSET')) if os.environ.get('FINDAFACTOR_GAUSSIAN_ELIMINATION_ROW_OFFSET') else 1,
2020
check_small_factors=True if os.environ.get('FINDAFACTOR_CHECK_SMALL_FACTORS') else False,
21-
wheel_primes_excluded=[int(i) for i in os.environ.get('FINDAFACTOR_WHEEL_PRIMES_EXCLUDED').split()] if os.environ.get('FINDAFACTOR_GAUSSIAN_ELIMINATION_ROW_OFFSET') else []):
21+
wheel_primes_excluded=[int(i) for i in os.environ.get('FINDAFACTOR_WHEEL_PRIMES_EXCLUDED').split(",")] if os.environ.get('FINDAFACTOR_GAUSSIAN_ELIMINATION_ROW_OFFSET') else []):
2222
return int(_find_a_factor._find_a_factor(str(n),
2323
int(method),
2424
node_count, node_id,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ All variables defaults can also be controlled by environment variables:
6464
- `FINDAFACTOR_SMOOTHNESS_BOUND_MULTIPLIER`
6565
- `FINDAFACTOR_GAUSSIAN_ELIMINATION_ROW_OFFSET`
6666
- `FINDAFACTOR_CHECK_SMALL_FACTORS` (`True` if set at all, otherwise `False`)
67-
- `FINDAFACTOR_WHEEL_PRIMES_EXCLUDED` (space-separated prime numbers)
67+
- `FINDAFACTOR_WHEEL_PRIMES_EXCLUDED` (comma-separated prime numbers)
6868

6969
## About
7070
This library was originally called ["Qimcifa"](https://github.com/vm6502q/qimcifa) and demonstrated a (Shor's-like) "quantum-inspired" algorithm for integer factoring. It has since been developed into a general factoring algorithm and tool.

0 commit comments

Comments
 (0)