본문 바로가기

Studio KimHippo :D

검색하기
Studio KimHippo :D
프로필사진 김작은하마

  • 분류 전체보기 (39)
    • !Notice! (1)
    • Co-op (6)
      • 2019 Big data Analysis Comp.. (6)
    • Artificial Intelligence (1)
      • Deep Learning (1)
      • Machine Learning (0)
      • Reinforcement Learning (0)
    • Data Science (4)
      • Crawler (4)
      • Excel (0)
      • R (0)
      • SQL (0)
    • Kaggle Study (1)
    • Mathematics (1)
    • Python Study (25)
      • Algorithm Challenge (6)
      • Beautiful Soup, Selenium (0)
      • NumPy (12)
      • Pandas (2)
      • Pure Python (5)
      • PyQt (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Mathematics (1)

Studio KimHippo :D

#1. 암호화 알고리즘 클래스

암호화 알고리즘 구현에 필요한 패키지 import re import math as mt import time as t import random as rand 암호화 알고리즘에 필요한 수학 함수 클래스 class Kim_number: def __init__(self): self.seq = [] def is_prime(self, in_num): sqrt = int(mt.sqrt(in_num)) isPrime = 1 if in_num < 2: isPrime = 0 else: for rep in range(2, sqrt + 1): res = in_num % rep if res == 0: isPrime = 0 break return isPrime def get_prime(self, in_num): pri_lis ..

Mathematics 2019. 6. 27. 22:15
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바