简介
在本实验中,你将学习如何编写一个 C++ 程序来检查给定的数字是否为质数。质数是指只能被 1 和其自身整除的数字。它是数论中的一个重要概念,并在密码学中有许多重要应用。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
cpp(("`C++`")) -.-> cpp/BasicsGroup(["`Basics`"])
cpp(("`C++`")) -.-> cpp/ControlFlowGroup(["`Control Flow`"])
cpp(("`C++`")) -.-> cpp/IOandFileHandlingGroup(["`I/O and File Handling`"])
cpp(("`C++`")) -.-> cpp/SyntaxandStyleGroup(["`Syntax and Style`"])
cpp/BasicsGroup -.-> cpp/variables("`Variables`")
cpp/ControlFlowGroup -.-> cpp/conditions("`Conditions`")
cpp/ControlFlowGroup -.-> cpp/for_loop("`For Loop`")
cpp/IOandFileHandlingGroup -.-> cpp/output("`Output`")
cpp/IOandFileHandlingGroup -.-> cpp/user_input("`User Input`")
cpp/IOandFileHandlingGroup -.-> cpp/files("`Files`")
cpp/SyntaxandStyleGroup -.-> cpp/code_formatting("`Code Formatting`")
subgraph Lab Skills
cpp/variables -.-> lab-96177{{"`使用 C++ 判断质数`"}}
cpp/conditions -.-> lab-96177{{"`使用 C++ 判断质数`"}}
cpp/for_loop -.-> lab-96177{{"`使用 C++ 判断质数`"}}
cpp/output -.-> lab-96177{{"`使用 C++ 判断质数`"}}
cpp/user_input -.-> lab-96177{{"`使用 C++ 判断质数`"}}
cpp/files -.-> lab-96177{{"`使用 C++ 判断质数`"}}
cpp/code_formatting -.-> lab-96177{{"`使用 C++ 判断质数`"}}
end