https://vjudge.net/contest/218366 Java解 import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(System.in); BigInteger a = cin.nextBigInteger(); Boolean b = a.isPro…