結果

問題 No.36 素数が嫌い!
ユーザー あかりきあかりき
提出日時 2021-02-08 09:53:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 237 ms / 5,000 ms
コード長 216 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 87,152 KB
実行使用メモリ 75,868 KB
最終ジャッジ日時 2023-09-18 15:38:36
合計ジャッジ時間 4,529 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
75,480 KB
testcase_01 AC 82 ms
75,408 KB
testcase_02 AC 76 ms
71,532 KB
testcase_03 AC 75 ms
71,052 KB
testcase_04 AC 75 ms
71,048 KB
testcase_05 AC 77 ms
75,516 KB
testcase_06 AC 77 ms
75,488 KB
testcase_07 AC 78 ms
75,400 KB
testcase_08 AC 75 ms
71,136 KB
testcase_09 AC 74 ms
71,496 KB
testcase_10 AC 75 ms
75,400 KB
testcase_11 AC 130 ms
75,460 KB
testcase_12 AC 235 ms
75,364 KB
testcase_13 AC 237 ms
75,224 KB
testcase_14 AC 78 ms
75,548 KB
testcase_15 AC 76 ms
71,216 KB
testcase_16 AC 76 ms
71,320 KB
testcase_17 AC 76 ms
71,232 KB
testcase_18 AC 75 ms
71,212 KB
testcase_19 AC 85 ms
75,496 KB
testcase_20 AC 83 ms
75,496 KB
testcase_21 AC 99 ms
75,512 KB
testcase_22 AC 81 ms
75,536 KB
testcase_23 AC 79 ms
75,704 KB
testcase_24 AC 103 ms
75,404 KB
testcase_25 AC 107 ms
75,404 KB
testcase_26 AC 135 ms
75,868 KB
testcase_27 AC 81 ms
75,328 KB
testcase_28 AC 134 ms
75,592 KB
testcase_29 AC 79 ms
75,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())

def fact(n):
  b=2
  fct=[]
  while b*b<=n:
    while n%b==0:
      n//=b
      fct.append(b)
    b=b+1
  if n>1:
    fct.append(n)
  return fct

if len(fact(n))>=3:
  print('YES')
else:
  print('NO')
0