One-pot synthesis and antiproliferative activity of novel 2,4-diaminopyrimidine derivatives bearing piperidine and piperazine moieties.