#include #include using namespace std; int main() { int N; cin >> N; double P; cin >> P; double ans = 0; vector div(N+1); for (int i=2;i<=N;i++) { for (int j=i;j<=N;j+=i) div[j]++; double E = 1.0; for (int e=0;e