Periodic solutions for differential systems in R3 and R4