Problem smallprimes_ex
User avner21
Submission Time 2023-04-24 16:12:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

smallprimes_ex.cpp:3:3: error: invalid preprocessing directive #Sieve
3 | # Sieve of Eratosthenes to generate primes not exceeding K
| ^~~~~
smallprimes_ex.cpp:14:3: error: invalid preprocessing directive #Compute
14 | # Compute the number of nice numbers up to n
| ^~~~~~~
smallprimes_ex.cpp:17:7: error: invalid preprocessing directive #Base
17 | # Base case: S(0) = 1
| ^~~~
smallprimes_ex.cpp:19:7: error: invalid preprocessing directive #Compute
19 | # Compute S(n) for powers of 2 not exceeding n
| ^~~~~~~
smallprimes_ex.cpp:22:11: error: invalid preprocessing directive #Compute
22 | # Compute the value of S(p-1)
| ^~~~~~~
smallprimes_ex.cpp:29:7: error: invalid preprocessing directive #Use
29 | # Use dynamic programming to compute S(n)
| ^~~
smallprimes_ex.cpp:38:3: error: invalid preprocessing directive #Compute
38 | #