This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Write a Java Program that can print all the possible Combinations of a Digital LocK Key code which consists of 3 Numbers with the following constraints: The Sum of the Numbers cannot Exceed 1000 No two numbers can be multiples of each other. Like 10 and 20 cannot be part of the Key Code. Atleast One number has to a Prime Number in the Key Code. Each Number should be greater than or equal to 1 and less than or equal to 500