给定三个整数 nnn,aaa 与 ddd,表示一个项数为 nnn 的等差数列,首项为 aaa,公差为 ddd。
请统计,从这个等差数列中有多少数字是素数。
5 1 2
3
3,5,7
使用您的 XMOJ 通用账户