Driver Code
public static void main ( String [ ] args ) { int arr [ ] = { 28 , 2 , 3 , 6 , 496 , 99 , 8128 , 24 } ; int K = 4 ; int N = arr . length ; System . out . print ( max_PerfectNumbers ( arr , N , K ) ) ; } }