Question: Description Problem Statement You are given an integer N . Your task is to find the number of ways to partition N into a sum
Description
Problem Statement
You are given an integer Your task is to find the number of ways to partition into a sum of prime numbers.
Note: A partition of single number is also considered as a partition.
Two partitions are considered different if they differ in the number of times a particular prime number is used. For example: and are considered same partitions.
Since the answer can be very large, return the answer modulo
Input Format
The only input contains a single integer
Constraints
Output Format
Return an integer denoting the number of ways to partition the given integer
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
