子育てを終えた主婦です。やり直しの算数を勉強中です 単純に素数でない奇数の式を作り、 https://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q13301699733 プログラムで検証しているのですが、 500000003(9桁)までうまくいくのですが、 オーバーフローなのか、 それ以上の数値で結果が正しく出ません。 (ノートパソコンのスペックの限界かもしれません。 一回の実行処理に30分ぐらいかかります) 処理中のオーバーフローの検出方法ってありますか? (プログラムもほぼ初心者です) Sub 素数判定() Dim X, SQ_DB, SQ_DB_Nu, SQ_DB_Sou As Double Range("a8").Value = "検査中" Range("a9").Value = "" Range("a10").Value =