@property<EOL><INDENT>def text(self):<DEDENT>
def _problem_iter(problem_num):<EOL><INDENT>problem_file = os.path.join(EULER_DATA, '<STR_LIT>')<EOL>with open(problem_file) as f:<EOL><INDENT>is_problem = False<EOL>last_line = '<STR_LIT>'<EOL>for line in f:<EOL><INDENT>if line.strip() == '<STR_LIT>' % problem_num:<EOL><INDENT>is_problem = True<EOL><DEDENT>if is_problem:<EOL><INDENT>if line == last_line == '<STR_LIT:\n>':<EOL><INDENT>break<EOL><DEDENT>else:<EOL><INDENT>yield line[:-<NUM_LIT:1>]<EOL>last_line = line<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>problem_lines = [line for line in _problem_iter(self.num)]<EOL>if problem_lines:<EOL><INDENT>return '<STR_LIT:\n>'.join(problem_lines[<NUM_LIT:3>:-<NUM_LIT:1>])<EOL><DEDENT>else:<EOL><INDENT>msg = '<STR_LIT>' % self.num<EOL>click.secho(msg, fg='<STR_LIT>')<EOL>click.echo('<STR_LIT>'<EOL>'<STR_LIT>')<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>
Parses problems.txt and returns problem text