Hamiltonian trajectories having prescribed minimal period