C # implementation to count the number of ways a number can be written as sum of prime number and twice a square
using System ; using System . Collections ; using System . Collections . Generic ; class GFG { static int n = 500000 - 2 ; static ArrayList v = new ArrayList ( ) ;