number-theory
Prime numbers, congruences, Diophantine equations, Euler totient, and cryptographic primitives.
- License 许可
- MIT
- 最近更新
- 2026-10-17
- Stars
- ★ 8
- Forks
- 1
01 前言 Front Matter
- name
- number-theory
- metadata
- { "category": "Algebra and Number Theory" }
- description
- Prime numbers, congruences, Diophantine equations, Euler totient, and cryptographic primitives.
02 资源文件 1
- 参考文档metadata.json216 B
03 SKILL.md 正文
Number Theory
Domain
Properties of integers.
Core Concepts
- Divisibility, primes, unique factorization
- Congruences, modular arithmetic
- Diophantine equations
- Quadratic residues, Legendre symbol
- Riemann zeta function, analytic NT
Key Methods
- Euclidean algorithm
- Chinese Remainder Theorem
- Fermat's little theorem, Euler's theorem
- Quadratic reciprocity
- Sieve methods
Canonical Examples
- Solve x ≡ 2 (mod 3), x ≡ 3 (mod 5) → x ≡ 8 (mod 15).
- Prove infinitely many primes (Euclid).
- Wilson: (p-1)! ≡ -1 (mod p) for prime p.
Common Pitfalls
- Assuming unique factorization in all rings
- Misapplying Fermat when modulus isn't prime
- Ignoring coprimality conditions
Related Skills
Abstract Algebra, Cryptography, Combinatorics
04 同仓库更多 Skills
security-audit
Comprehensive security guidance, source code audit, vulnerability assessment, and penetration test review for codebases, APIs, microservices, CLI tools, libraries, and LLM-backed applications. Triggers on requests to audit a codebase, conduct security reviews, find vulnerabilities or flaws, pen-test source code, or when the user asks in Arabic (فحص أمني، تدقيق الكود أمنياً، مراجعة الثغرات، فحص أمان المشروع). Supports Guidance mode (focused review) and Full Audit mode (deterministic 6-phase harness).
malware-analysis-reversing
Production malware analysis workflows, reverse engineering methodologies, isolated sandbox triage, static/dynamic binary analysis, memory forensics, and YARA detection rule authoring.
application-security-pentesting
Production Application Security (AppSec) standards, OWASP Top 10 vulnerability remediation, SAST/DAST pipeline integration, secure code review, threat modeling, and defensive security posture.
oauth2-oidc-security-flows
Implement enterprise OAuth 2.1 and OpenID Connect (OIDC) authorization code flow with Proof Key for Code Exchange (PKCE), state and nonce verification, refresh token rotation, token revocation, and centralized IdP federation (Keycloak, Auth0, Okta). Trigger when building secure authentication, single sign-on (SSO), or third-party delegated authorization.
jwt-session-management-hardening
Harden JWT-based authentication and session lifecycles using asymmetric signing (RS256/EdDSA), JWKS rotation, strict claims validation, Redis-backed sliding window sessions, revocation lists, and secure HttpOnly cookie storage. Trigger when implementing token validation, session revocation, or hardening API authentication.
soc2-compliance-automation
Best practices for implementing SOC 2 Type II compliance controls, continuous evidence collection, infrastructure policy-as-code, and automated security monitoring. Use when automating Trust Services Criteria (Security, Availability, Confidentiality, Processing Integrity, Privacy), audit logging, IAM least privilege, or CI/CD security gates.