| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 86643 | 吴梓玄 | 素数判断 | C++ | Compile Error | 0 MS | 0 KB | 261 | 2024-07-27 09:32:40 |
import math def pr(n): if n <= 1: return False for i in range(2, int(math.sqrt(n)) + 1): if n % i == 0: return False return True num = int(input()) if pr(num): print("prime") else: print('not prime')
Main.cc:14:11: warning: character constant too long for its type
print('not prime')
^
Main.cc:2:1: error: 'import' does not name a type
import math
^