<jupyter_start><jupyter_text>2021년 6월 22일 화요일 BaekJoon - 소수인팰린드롬 (Python)  문제 : https://www.acmicpc.net/problem/1990 블로그 : https://somjang.tistory.com/entry/BaekJoon-1990%EB%B2%88-%EC%86%8C%EC%88%98%EC%9D%B8%ED%8C%B0%EB%A6%B0%EB%93%9C%EB%A1%AC-Python  첫번째 시도<jupyter_code>def check_is_primary_num(num):
    for i in range(2, int(num**0.5) + 1):
        if num % i == 0:
            return False
    return True

def check_is_palindrome(num):
    is_palindrome = False
    num = str(num)
    if num == num[::-1]:
        is_palindrome = True
    return is_palindrome

def solution(A, B):
    if B > 10000000:
        B = 10000000
    palindrome_numbers = [num for num in range(A, B + 1) if check_is_palindrome(num)]
    primary_nums = [num for num in palindrome_numbers if check_is_primary_num(num)]
    for num in primary_nums:
        print(num)
    print("-1")
    
if __name__ == "__main__":
    A, B = map(int, input().split())
    
    solution(A, B)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13807106598984772, 'fraction_numerical': 0.05989847715736041, 'mean_word_length': 3.3056768558951966, 'pattern_counts': {'":': 1, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '51963', 'license': 'MIT', 'n_tokens_mistral': 464, 'n_tokens_neox': 444, 'n_words': 82, 'path': 'DAY 401 ~ 500/DAY403_[BaekJoon] 소수인팰린드롬 (Python).ipynb', 'repo_name': 'SOMJANG/CODINGTEST_PRACTICE', 'size': '985'}