Theresa May has insisted there is "goodwill on all sides" to resolve the border problems thrown up by Brexit on the island of Ireland.
During a visit to an agricultural show in Northern Ireland, the Prime Minister also insisted she was "personally engaged" in resolving the powersharing deadlock in Belfast.
Mrs May said "we all want to see" an agreement reached by the deadline shortly after the June 8 General Election.
She told broadcasters: "We have got to make sure we do resolve the issue of the border between Northern Ireland and the Republic of Ireland.
"I'm very clear that we want to see no return to the borders of the past, no hard border but I'm clear that we need to see as seamless and frictionless a border as possible."
Mrs May said the issue had been set out in her Article 50 letter triggering the start of Brexit negotiations and detailed in the response from Brussels.
She added: "There's goodwill on all sides."
Mrs May made the comments as she toured the Balmoral Show in Lisburn where she attracted a crowd as she stopped to talk to stall holders, including members of the Women's Institute who were dressed up as nursery rhyme characters as part of a themed event.
The Prime Minister stopped and posed for selfies with children and chatted to surprised show-goers during the 25-minute visit.
As she walked past the parade ring, Mrs May bumped into DUP leader Arlene Foster and her son and stopped for a quick chat.
The Prime Minister was later asked about criticism that she had not been involved enough in resolving the Stormont political crisis but pointed to meetings she held before Easter with Mrs Foster and Sinn Fein's Michelle O'Neill.
"I have been personally engaged. I have had contact with both Michelle and Arlene," she said.
"But what is important if we are going to see what we all want, which is a return to a strong and stable devolved administration here in Northern Ireland, is that the parties here in Northern Ireland come together and agree to an agreement that can enable that devolved administration to be established."
Sinn Fein Brexit spokesman John O'Dowd accused the PM of "arrogance".
He said: "The arrogance of Theresa May is astounding visiting the Balmoral Show, while her Tory cabinet is planning to impose Brexit on the north which will be disastrous for our farming and agri-food industries.
"Since taking office, Theresa May has visited the north once, taken one media question and then departed.
"Now that Ms May has ticked a box and visited the north one more time for the election, she will jet off home and continue to ignore the democratic wishes of the people here.
"This is a British Prime Minister whose Tory party received just 0.3% of the vote in the last Assembly election in the north.
"Her politics have been rejected both at the ballot box and in a referendum where the people of the north voted to remain within the EU. "