해커늬우스

  • 홈
  • 태그
  • 방명록

매치 1

소수를 확인하는 정규식

^(11+?)\1+$/ that can be used to check if a number is prime. The regular expression works by generating a string of 1s based on the number and checking if that string matches the pattern. The pattern matches either 1 or an empty string, or a string with repeating blocks of 11 or more 1s. If the string of 1s for a number does not match the pattern, then the number is prime. The author provides ex..

Hacker News 2023.06.21
이전
1
다음
더보기
프로필사진

  • 분류 전체보기 (488)
    • Hacker News (487)
    • Qiita (1)

Tag

새로운, 오픈 소스, 보안, 인공 지능, 앱, 자연어 처리, 코드, 머신러닝, 데이터, 작업, 오픈소스, 파이썬, 모델, 프로그래밍, 파일, 인공지능, 머신 러닝, 기술, 게임, 리눅스,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

  • 아무 말 주의

Copyright © Kakao Corp. All rights reserved.

티스토리툴바