全部 新建

user:thomas 由使用者建立的 Gists

title:mygist Gists 的標題

description:sync gists with given description

filename:myfile.txt Gists 的檔案名稱

extension:yml Gists 的副檔名

language:go Gists 的程式語言

topic:homelab gists with given topic

all:systemctl search all fields

登錄

全部 新建 登錄

所有 Gists

倒序排序 創建
順序排序 創建
倒序排序 更新
順序排序 更新

derplex / primes.py

0 喜歡
0 分支
1 檔案
最後活躍 2 months ago
1 import itertools
2
3 def iter_primes():
4 # an iterator of all numbers between 2 and +infinity
5 numbers = itertools.count(2)
6
7 # generate primes forever
8 while True:
9 # get the first number from the iterator (always a prime)
10 prime = next(numbers)
上一頁 下一頁

由 Opengist 提供支持 ⋅ Load: 23ms⋅

繁體中文
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文