Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raindrops翻译修正以及nth-prime格式优化 #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exercises/nth-prime/README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

给定一个数`n`,确定第`n`个素数是什么.

如: 列出前六个素数:`2, 3, 57, 11和13`,我们可以看到第六素数是`13`.
如: 列出前六个素数:`2, 3, 5, 7, 11`和`13`, 我们可以看到第六个素数是`13`.

如果您的语言标准库中提供了处理素数的方法,请假装它们不存在,并自己实现它们.

Expand Down
22 changes: 11 additions & 11 deletions exercises/raindrops/README.zh.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# 雨滴-Raindrops

把一个数字转换成一个字符串,它的内容取决于,数字的因素.
把一个数字转化成和其因数有关的字符串

- 如果数字有 3 作为一个因素,输出"Pling".
- 如果数字有 5 作为一个因素,输出"Plang'".
- 如果数字有 7 作为一个因素,输出"Plong".
- 如果数字没有 3, 5,或 7 作为一个因素, 直接给数字。
- 如果 3 是数字的一个因数, 输出"Pling".
- 如果 5 是数字的一个因数, 输出"Plang".
- 如果 7 是数字的一个因数, 输出"Plong".
- 如果数字既没有 3 , 也没有 5 和 7 作为数字的因数, 直接输出数字.

## 实例

- 28 的因素是 1, 2, 4, **7**,14, 28.
- 雨滴说,这将是一个简单的"Plong".
- 30 的因素是 1, 2,**3**,**5**,6, 10, 15,30.
- 雨滴说,这将是一个"PlingPlang".
- 34 有四个因素:1, 2, 17,34.
- 雨滴说,这将是"34".
- 28 的因数是 1, 2, 4, **7**, 14, 28.
- 用雨滴的话来说, 是简单的"Plong".
- 30 的因数是 1, 2, **3**, **5**, 6, 10, 15, 30.
- 用雨滴的话来说, 是"PlingPlang".
- 34 有四个因数:1, 2, 17, 34.
- 用雨滴的话来说, 是"34".

## Source

Expand Down